Skip to content

Commit 986e2f7

Browse files
committed
fix: log error message correctly
Signed-off-by: Snehil Shah <[email protected]>
1 parent e8ea315 commit 986e2f7

File tree

1 file changed

+2
-2
lines changed
  • lib/node_modules/@stdlib/repl/lib

1 file changed

+2
-2
lines changed

lib/node_modules/@stdlib/repl/lib/main.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -580,8 +580,8 @@ setNonEnumerableReadOnly( REPL.prototype, '_captureKeybinding', function capture
580580
try {
581581
this.setKeybinding( this._targetAction, parsedKeys );
582582
this._ostream.write( format( '\n\nSuccessfully set the following keybindings for action `%s`.\n\n%s\n', this._targetAction, JSON.stringify( parsedKeys, null, 2 ) ) );
583-
} catch ( error ) {
584-
this._ostream.write( format( '\n\nError: %s\n', error ) );
583+
} catch ( err ) {
584+
this._ostream.write( format( '\n\nError: %s\n', err.message ) );
585585
}
586586
this._isCapturingKeybinding = false;
587587
this._targetAction = '';

0 commit comments

Comments
 (0)