Skip to content

Commit

Permalink
Put error location on new line, see #928
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisklus committed Apr 4, 2020
1 parent a2867af commit 91aebe2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions js/grunt/phet-io/generatePhetioAPIFiles.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,9 @@ module.exports = async ( repo, localTestingURL ) => {
await resolved();
}
else if ( msg.type() === 'error' ) {
const location = msg.location ? msg.location().url : '';
console.error( 'Error from sim:', msg.text(), location );
const location = msg.location ? ':\n ' + msg.location().url : '';
const message = msg.text() + location;
console.error( 'Error from sim:', message );
}
} );

Expand Down

0 comments on commit 91aebe2

Please sign in to comment.