Unhelpful error message on invalid source file or command #1671
Labels
duplicate
This issue or pull request already exists
enhancement
New feature or request
SIP-46
All the issues related to SIP-46 to turn Scala CLI into the official scala runner command.
Is your feature request related to a problem? Please describe.
When someone runs
scala
(as installed bycs install scala-experimental
) with an invalid command name, or an invalid source file name, the output is not helpful:Describe the solution you'd like
The tool should explain what it tried to do (here, running a Scala program named “foobar”), why it failed (here, the file “foobar” does not exist), and what the user could do to fix the problem (check that the file name is correct? add a missing extension? or, in case the user simply constructed a wrong invocation, remind them that they can get general help with
scala --help
?).The text was updated successfully, but these errors were encountered: