Skip to content

Commit

Permalink
Catch RunError more thoroughly
Browse files Browse the repository at this point in the history
  • Loading branch information
RobDangerous committed Sep 24, 2024
1 parent 263008f commit f60ac02
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
3 changes: 3 additions & 0 deletions kmake/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1082,6 +1082,9 @@ export async function run(options: any, loglog: any): Promise<string> {
if (typeof(err) === 'number') {
throw 'Compile error';
}
else if (err instanceof RunError) {
throw 'Run Error (code ' + err.code + ')';
}
else {
if (isPlatform(options, Platform.Linux) || isPlatform(options, Platform.Wasm) || isPlatform(options, Platform.Pi) || isPlatform(options, Platform.Emscripten)) {
log.error('Ninja could not be run, falling back to make.');
Expand Down
3 changes: 3 additions & 0 deletions lib/kmake/main.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit f60ac02

Please sign in to comment.