KaryScript icon indicating copy to clipboard operation
KaryScript copied to clipboard

Runtime Errors are not being handled right.

Open pouyakary opened this issue 8 years ago • 0 comments

Runtime errors like this are not being handled right

{ Error: ENOENT: no such file or directory, open '/Users/pmk/OneDrive/Codes/KaryScript/tests/test-drive/
bin/main.js'
    at Object.fs.openSync (fs.js:558:18)
    at Object.fs.writeFileSync (fs.js:1223:33)
    at Object.BuildSingleFile (/Users/pmk/OneDrive/Codes/KaryScript/bin/cli.js:85:32)
    at Object.Build (/Users/pmk/OneDrive/Codes/KaryScript/bin/cli.js:120:36)
    at Object.RunBuild (/Users/pmk/OneDrive/Codes/KaryScript/bin/cli.js:217:40)
    at SwitchRunner (/Users/pmk/OneDrive/Codes/KaryScript/bin/cli.js:2136:33)
    at Object.Main (/Users/pmk/OneDrive/Codes/KaryScript/bin/cli.js:2115:17)
    at Object.<anonymous> (/Users/pmk/OneDrive/Codes/KaryScript/bin/cli.js:2141:16)
    at Module._compile (module.js:571:32)
    at Object.Module._extensions..js (module.js:580:10)
  errno: -2,
  code: 'ENOENT',
  syscall: 'open',
  path: '/Users/pmk/OneDrive/Codes/KaryScript/tests/test-drive/bin/main.js' }

pouyakary avatar Mar 04 '17 22:03 pouyakary