Skip to content

Instantly share code, notes, and snippets.

@xaptronic
Created October 7, 2011 14:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save xaptronic/1270412 to your computer and use it in GitHub Desktop.
Save xaptronic/1270412 to your computer and use it in GitHub Desktop.
Error message when using .default method of the optimist library.
/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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment