mirror of
https://github.com/danbulant/oxc
synced 2026-05-24 12:21:58 +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;
|
process.exitCode = result.status;
|
||||||
} else {
|
} else {
|
||||||
|
let target = `${platform}-${arch}`;
|
||||||
|
if (isMusl()) {
|
||||||
|
target = `${target}-musl`;
|
||||||
|
}
|
||||||
console.error(
|
console.error(
|
||||||
"The oxlint CLI package doesn't ship with prebuilt binaries for your platform yet. " +
|
`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.",
|
"You can create an issue at https://github.com/oxc-project/oxc/issues for support.",
|
||||||
);
|
);
|
||||||
process.exitCode = 1;
|
process.exitCode = 1;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue