mirror of
https://github.com/danbulant/oxc
synced 2026-05-19 12:19:15 +00:00
feat(npm/oxlint): display target triple when error is thrown (#2259)
To improve debuggability closes #2196
This commit is contained in:
parent
a3df55e7ed
commit
0ae28dd159
1 changed files with 6 additions and 2 deletions
|
|
@ -131,9 +131,13 @@ if (binPath) {
|
|||
|
||||
process.exitCode = result.status;
|
||||
} else {
|
||||
let target = `${platform}-${arch}`;
|
||||
if (isMusl()) {
|
||||
target = `${target}-musl`;
|
||||
}
|
||||
console.error(
|
||||
"The oxlint CLI package doesn't ship with prebuilt binaries for your platform yet. " +
|
||||
"You can create an issue at https://github.com/oxc-project/oxc/issues for support.",
|
||||
`The oxlint CLI package doesn't ship with prebuilt binaries for your platform (${target}) yet. ` +
|
||||
"You can create an issue at https://github.com/oxc-project/oxc/issues for support.",
|
||||
);
|
||||
process.exitCode = 1;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue