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
This is an uncaught OCaml exception printed directly. We should at least show the path that is a directory, otherwise things get difficult to debug in e.g. CI or build scripts.
It's also inconsistent with the error message when e.g. file is not found:
$ moc test
test: No such file or directory
In general it's a good idea to be as helpful as possible and show the problematic path.
I suggest we print
<input> is a directory
or
<input>: Is a directory
to be consistent with the error message when file does not exist.
The text was updated successfully, but these errors were encountered:
It seems like you can create a lexer for a non-existent file or a directory and it doesn't fail. It only fails when you ask for the next token. In moc, the line that throws this exception is
This is an uncaught OCaml exception printed directly. We should at least show the path that is a directory, otherwise things get difficult to debug in e.g. CI or build scripts.
It's also inconsistent with the error message when e.g. file is not found:
In general it's a good idea to be as helpful as possible and show the problematic path.
I suggest we print
or
to be consistent with the error message when file does not exist.
The text was updated successfully, but these errors were encountered: