Eiyeron Fulmincendii лет назад: 10
Родитель
Сommit
b7178ffb67
1 измененных файлов с 1 добавлено и 2 удалено
  1. 1 2
      src/piaf/Archive.cpp

+ 1 - 2
src/piaf/Archive.cpp

@@ -248,7 +248,7 @@ File Archive::get(const char *filename)
                 if (fread(data, sizeof(uint8_t), entries[index].file_size, file) !=
                     entries[index].file_size)
                 {
-                    // throw loading error
+                    throw PIAF::PIAFException("%s: couldn't load %s from an archive.", filename);
                 }
                 else
                 {
@@ -264,7 +264,6 @@ File Archive::get(const char *filename)
         }
     }
     return File();
-    // throw not found exception
 }
 
 File::File(uint8_t *data) : data(data)