public
Created

Error message when using .default method of the optimist library.

  • Download Gist
gistfile1.txt
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
/usr/local/lib/node_modules/tamejs/lib/parser.js:276
throw new Error(str);
^
Error: Parse error on line 9:
...), args = optimist.default('port', 8082
----------------------^
Expecting 'QUOTE1', 'QUOTE2', 'LABEL', 'LPAREN', 'RPAREN', 'LBRACKET', 'RBRACKET', 'LBRACE', 'RBRACE', 'GENERIC', 'COMMA', 'DOT', 'COLON', 'ID', 'DECIMAL', 'THIS', 'DEFER', 'SEMICOLON', 'FUNCTION'
at Object.parseError (/usr/local/lib/node_modules/tamejs/lib/parser.js:276:11)
at Object.parse (/usr/local/lib/node_modules/tamejs/lib/parser.js:352:22)
at Engine.parse (/usr/local/lib/node_modules/tamejs/lib/engine.js:396:19)
at /usr/local/lib/node_modules/tamejs/lib/main.js:198:9
at /usr/local/lib/node_modules/tamejs/lib/engine.js:362:6
at [object Object].<anonymous> (fs.js:107:5)
at [object Object].emit (events.js:61:17)
at afterRead (fs.js:878:12)
at wrapper (fs.js:245:17)

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.