Skip to content

Commit

Permalink
catch errors
Browse files Browse the repository at this point in the history
  • Loading branch information
yegor256 committed Dec 17, 2024
1 parent ffc9b51 commit 383f71f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/commands/lint.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ module.exports = function(opts) {
).then((r) => {
console.info('EO program linted in %s', rel(path.resolve(opts.target)));
return r;
}).catch((error) => {
throw new Error("There are error and/or warnings; you may disable warnings via the --easy option");

Check failure on line 47 in src/commands/lint.js

View workflow job for this annotation

GitHub Actions / build (ubuntu-24.04, 17, 16)

This line has a length of 105. Maximum allowed is 100

Check failure on line 47 in src/commands/lint.js

View workflow job for this annotation

GitHub Actions / build (ubuntu-24.04, 17, 16)

Strings must use singlequote
});
} else {
return mvnw(
Expand All @@ -51,6 +53,8 @@ module.exports = function(opts) {
).then((r) => {
console.info('EO program verified in %s', rel(path.resolve(opts.target)));
return r;
}).catch((error) => {
throw new Error("You may disable warnings via the --easy option");

Check failure on line 57 in src/commands/lint.js

View workflow job for this annotation

GitHub Actions / build (ubuntu-24.04, 17, 16)

Strings must use singlequote
});
}
};

0 comments on commit 383f71f

Please sign in to comment.