summaryrefslogtreecommitdiff
path: root/src/main.cpp
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/main.cpp
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/main.cpp')
-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 += "/";