Skip to content

Commit

Permalink
refine input file missing msg (lcompilers#2536)
Browse files Browse the repository at this point in the history
  • Loading branch information
syheliel committed Feb 17, 2024
1 parent a750efb commit 496f29e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/bin/lpython.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1735,7 +1735,8 @@ int main(int argc, char *argv[])
// the first:
std::string arg_file = arg_files[0];
if (CLI::NonexistentPath(arg_file).empty()){
throw LCompilers::LCompilersException("No such file or directory: " + arg_file);
std::cerr << "The input file does not exist: " << arg_file << std::endl;
return 1;
}

std::string outfile;
Expand Down

0 comments on commit 496f29e

Please sign in to comment.