瀏覽代碼

Tweak the invalid preset error message to mention `export_presets.cfg`

(cherry picked from commit a7b2f3d41aa47d64ad783d5afb35d08e706bf8ea)
Hugo Locurcio 5 年之前
父節點
當前提交
317c9b5fe9
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. 3 1
      editor/editor_node.cpp

+ 3 - 1
editor/editor_node.cpp

@@ -593,7 +593,9 @@ void EditorNode::_fs_changed() {
 			preset.unref();
 		}
 		if (preset.is_null()) {
-			export_error = vformat("Invalid export preset name: %s.", preset_name);
+			export_error = vformat(
+					"Invalid export preset name: %s. Make sure `export_presets.cfg` is present in the current directory.",
+					preset_name);
 		} else {
 			Ref<EditorExportPlatform> platform = preset->get_platform();
 			if (platform.is_null()) {