You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
compiling .riot file on the commandline returns always 0, even on errors.
This happens in the following cases:
for a nonexistent file:
$ ~/node_modules/.bin/riot none-xistent-file.riot
(node:25239) UnhandledPromiseRejectionWarning: Error: ENOENT: no such file or directory, stat 'none-xistent-file'
at statSync (fs.js:915:3)
...
$ echo $?
0
and also if the file exists but has no root node:
$ touch foo.riot
$ ~/node_modules/.bin/riot foo.riot
(node:25366) UnhandledPromiseRejectionWarning: Error: [1,0]: Root tag not found.
...
$ echo $?
0
Wishful bugfix: in case of an error, a not-zeroexitcode should be returned in the shell, so that the calling process can recognize the error
Can you reproduce the issue?
yes, install riot cli v 4.0.3 ad do the steps in 1)
Which version of Riot does it affect?
$ ~/node_modules/.bin/riot -v
4.0.3
How would you tag this issue?
Question
[ X] Bug
Discussion
Feature request
Tip
Enhancement
Performance
The text was updated successfully, but these errors were encountered:
compiling .riot file on the commandline returns always 0, even on errors.
This happens in the following cases:
for a nonexistent file:
and also if the file exists but has no root node:
Wishful bugfix: in case of an error, a not-zeroexitcode should be returned in the shell, so that the calling process can recognize the error
yes, install riot cli v 4.0.3 ad do the steps in 1)
Which version of Riot does it affect?
$ ~/node_modules/.bin/riot -v
4.0.3
How would you tag this issue?
The text was updated successfully, but these errors were encountered: