From: Ricardo Cruz Date: Sun, 25 Apr 2004 10:02:14 +0000 (+0000) Subject: Just made lispreader to send an error message to stderr when the file could not be... X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=130f7b3c4e347c6d5dd8c1e506a38df1bf808c5e;p=supertux.git Just made lispreader to send an error message to stderr when the file could not be open, as suggested by Arkadiusz Miskiewicz. SVN-Revision: 690 --- diff --git a/src/lispreader.cpp b/src/lispreader.cpp index 0ece43d83..4dc6d4fda 100644 --- a/src/lispreader.cpp +++ b/src/lispreader.cpp @@ -21,6 +21,7 @@ * Boston, MA 02111-1307, USA. */ +#include #include #include #include @@ -1338,8 +1339,11 @@ lisp_object_t* lisp_read_from_file(const std::string& filename) { lisp_stream_init_file(&stream, in); obj = lisp_read(&stream); - fclose(in); } + else + std::cerr << "LispReader: File not found: " << filename << endl; + + fclose(in); return obj; }