Skip to content

Commit

Permalink
Fix #257
Browse files Browse the repository at this point in the history
  • Loading branch information
RobDangerous committed Mar 1, 2022
1 parent 9bbb1ce commit 4eed0d0
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 8 deletions.
18 changes: 14 additions & 4 deletions out/main.js

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

18 changes: 14 additions & 4 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -223,8 +223,13 @@ async function exportProjectFiles(name: string, resourceDir: string, options: Op
return name;
}
catch (error) {
log.error(error);
return '';
if (error) {
log.error('Error: ' + error);
}
else {
log.error('Error.');
}
process.exit(1);
}
}
else if (options.haxe !== '' && korehl && !options.noproject) {
Expand Down Expand Up @@ -256,8 +261,13 @@ async function exportProjectFiles(name: string, resourceDir: string, options: Op
return name;
}
catch (error) {
log.error(error);
return '';
if (error) {
log.error('Error: ' + error);
}
else {
log.error('Error.');
}
process.exit(1);
}
}
else {
Expand Down

0 comments on commit 4eed0d0

Please sign in to comment.