diff --git a/src/bin/lpython.cpp b/src/bin/lpython.cpp index 6f0fc85b24..d5afe1fb8c 100644 --- a/src/bin/lpython.cpp +++ b/src/bin/lpython.cpp @@ -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;