diff options
author | dshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-01-11 07:03:20 +0000 |
---|---|---|
committer | dshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-01-11 07:03:20 +0000 |
commit | abc565d0ca078f1d6214c447f41de3b5589155c2 (patch) | |
tree | 847a6ad3351ed7359888191b9e397cd9cedb8e67 /crawl-ref/source/maps.cc | |
parent | 12daab03d032a6f81f739da7932ce0a0f4094b4e (diff) | |
download | crawl-ref-abc565d0ca078f1d6214c447f41de3b5589155c2.tar.gz crawl-ref-abc565d0ca078f1d6214c447f41de3b5589155c2.zip |
Changed error message + exit() sequences to end() calls so that the user can
see the error message on the console.
Added docs/ to the data search path for the Windows builds.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@829 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/maps.cc')
-rw-r--r-- | crawl-ref/source/maps.cc | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/crawl-ref/source/maps.cc b/crawl-ref/source/maps.cc index 6edf4981b0..0637a11742 100644 --- a/crawl-ref/source/maps.cc +++ b/crawl-ref/source/maps.cc @@ -315,11 +315,7 @@ static void parse_maps(const std::string &s) { FILE *dat = fopen(s.c_str(), "r"); if (!dat) - { - fprintf(stderr, "Failed to open %s for reading: %d\n", s.c_str(), - errno); - exit(1); - } + end(1, true, "Failed to open %s for reading: %d\n", s.c_str()); reset_map_parser(); |