Skip to content

Commit 496f29e

Browse files
authored
refine input file missing msg (#2536)
1 parent a750efb commit 496f29e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/bin/lpython.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1735,7 +1735,8 @@ int main(int argc, char *argv[])
17351735
// the first:
17361736
std::string arg_file = arg_files[0];
17371737
if (CLI::NonexistentPath(arg_file).empty()){
1738-
throw LCompilers::LCompilersException("No such file or directory: " + arg_file);
1738+
std::cerr << "The input file does not exist: " << arg_file << std::endl;
1739+
return 1;
17391740
}
17401741

17411742
std::string outfile;

0 commit comments

Comments
 (0)