Skip to content

Commit

Permalink
no longer throw out Errors, just console.error
Browse files Browse the repository at this point in the history
  • Loading branch information
latel committed Mar 14, 2018
1 parent d0367fd commit 4fab787
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion dist/logline.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ var LEVEL_CONSOLE_MAP = {

// throw out Errors, with global prefix 'Logline: ' ahead of err.message
function throwError(errMessage) {
throw new Error('Logline: ' + errMessage);
HAS_CONSOLE && console.error('Logline: ' + errMessage);
}

// print debug info in develper's console
Expand Down
Loading

0 comments on commit 4fab787

Please sign in to comment.