Skip to content

Commit

Permalink
JXA doesn't have console.error; must use console.log
Browse files Browse the repository at this point in the history
  • Loading branch information
johnelm committed Sep 3, 2018
1 parent be94786 commit a718f2a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion node-jxa.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const browserify = require( 'browserify' );
const cp = require( 'child_process' );

const HEAD = 'window = this;\nObjC.import("stdlib");\ntry {\n ';
const TAIL = ';\n} catch (e) {\n console.error( e.message );\n $.exit(1); \n}\n$.exit(0);';
const TAIL = ';\n} catch (e) {\n console.log( e.message );\n $.exit(1); \n}\n$.exit(0);';
const OSA_JXA_CMD = 'osascript';
const OSA_JXA_CMD_ARGS = ['-l', 'JavaScript' ];

Expand Down

0 comments on commit a718f2a

Please sign in to comment.