Browse Source

replace remaining dummy error with exception

Patrick Brosi 6 years ago
parent
commit
b87c826236
1 changed files with 1 additions and 2 deletions
  1. 1 2
      File.cpp

+ 1 - 2
File.cpp

@@ -196,8 +196,7 @@ bool File::next() {
196
             continue;
196
             continue;
197
           }
197
           }
198
 
198
 
199
-          std::cerr << "ERROR 5" << std::endl;
200
-          exit(0);
199
+          throw XmlFileException("expected attribute key char or =");
201
 
200
 
202
         case AFTER_ATTRKEY:
201
         case AFTER_ATTRKEY:
203
           if (std::isspace(c))
202
           if (std::isspace(c))