summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAaron Marks <nymacro@gmail.com>2005-07-09 05:32:20 +0000
committerAaron Marks <nymacro@gmail.com>2005-07-09 05:32:20 +0000
commit7056ad1bfb7210b4387c0b6cf3b0cb6fce60187a (patch)
tree8138c1fb582ab782cd16b711a08519bfebb479b0 /src
parent947322a5b05086ffa2645dd376d787eafad306d5 (diff)
downloadmana-7056ad1bfb7210b4387c0b6cf3b0cb6fce60187a.tar.gz
mana-7056ad1bfb7210b4387c0b6cf3b0cb6fce60187a.tar.bz2
mana-7056ad1bfb7210b4387c0b6cf3b0cb6fce60187a.tar.xz
mana-7056ad1bfb7210b4387c0b6cf3b0cb6fce60187a.zip
Update now checks to make sure resources.txt existed on the server and did
not download an error page.
Diffstat (limited to 'src')
-rw-r--r--src/main.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp
index b40d0826..aa7e6b19 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -471,6 +471,12 @@ void update()
while (!in.eof())
{
getline(in, line);
+
+ // check for XML tag (if it is XML tag it is error)
+ if (line[0] == '<') {
+ std::cout << "Error: resources.txt download error (404)" << std::endl;
+ break;
+ }
fullName = homeDir;
fullName += "/";