Kaynağa Gözat

Follow up to ac1cf04

Thanks to @CairoLee
Lemongrass3110 7 yıl önce
ebeveyn
işleme
74cc00f88e
1 değiştirilmiş dosya ile 2 ekleme ve 0 silme
  1. 2 0
      src/common/yamlwrapper.cpp

+ 2 - 0
src/common/yamlwrapper.cpp

@@ -50,6 +50,8 @@ yamlwrapper* yaml_load_file(const char* file_name) {
 	} catch (YAML::ParserException &e) {
 		ShowError("YAML Exception Caught: %s\n", e.what());
 		return NULL;
+	} catch (YAML::BadFile &e) {
+		return NULL;
 	}
 
 	return new yamlwrapper(node);