From f10fb07f0e24cb28643e014b5fd2cdcbd054b6e8 Mon Sep 17 00:00:00 2001 From: jp9000 Date: Fri, 11 Sep 2015 21:45:51 -0700 Subject: [PATCH] UI: Log an error if loading of a scene file failed --- obs/window-basic-main.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/obs/window-basic-main.cpp b/obs/window-basic-main.cpp index 2e91175ba..411f5fe63 100644 --- a/obs/window-basic-main.cpp +++ b/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;