Skip to content

Commit

Permalink
more graceful string check for error, #1429
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Kauzmann <michael.kauzmann@colorado.edu>
  • Loading branch information
zepumph committed Apr 11, 2024
1 parent 1bf3583 commit 1f55091
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/grunt/lint.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ function runEslint( repos, options ) {
resolve( parsed );
}
catch( e ) {
if ( e.message.includes( 'Unexpected end of JSON input' ) ) {
if ( e.message.includes( 'Unexpected' ) && e.message.includes( 'end' ) && e.message.includes( 'JSON' ) ) {
console.log( message ); // Not JSON output, so print it instead
}
else {
Expand Down

0 comments on commit 1f55091

Please sign in to comment.