From 7056ad1bfb7210b4387c0b6cf3b0cb6fce60187a Mon Sep 17 00:00:00 2001 From: Aaron Marks Date: Sat, 9 Jul 2005 05:32:20 +0000 Subject: Update now checks to make sure resources.txt existed on the server and did not download an error page. --- src/main.cpp | 6 ++++++ 1 file changed, 6 insertions(+) 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 += "/"; -- cgit v1.2.3-70-g09d2