Browse Source

UI: Log an error if loading of a scene file failed

jp9000 10 years ago
parent
commit
f10fb07f0e
1 changed files with 2 additions and 0 deletions
  1. 2 0
      obs/window-basic-main.cpp

+ 2 - 0
obs/window-basic-main.cpp

@@ -455,6 +455,8 @@ void OBSBasic::Load(const char *file)
 	obs_data_t *data = obs_data_create_from_json_file_safe(file, "bak");
 	if (!data) {
 		disableSaving--;
+		blog(LOG_ERROR, "Failed to load '%s', creating default scene",
+				file);
 		CreateDefaultScene();
 		SaveProject();
 		return;