浏览代码

Merge pull request #618 from siriustnt/bug_fix

ERR_FILE_CANT_READ -> ERR_FILE_CANT_WRITE
reduz 11 年之前
父节点
当前提交
7b1a2a5018
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      tools/editor/editor_import_export.cpp

+ 2 - 2
tools/editor/editor_import_export.cpp

@@ -1032,7 +1032,7 @@ Error EditorExportPlatformPC::export_project(const String& p_path, bool p_debug,
 	if (!dst) {
 	if (!dst) {
 
 
 		EditorNode::add_io_error("Can't copy executable file to:\n "+p_path);
 		EditorNode::add_io_error("Can't copy executable file to:\n "+p_path);
-		return ERR_FILE_CANT_READ;
+		return ERR_FILE_CANT_WRITE;
 	}
 	}
 
 
 	uint8_t buff[32768];
 	uint8_t buff[32768];
@@ -1061,7 +1061,7 @@ Error EditorExportPlatformPC::export_project(const String& p_path, bool p_debug,
 		if (!dst) {
 		if (!dst) {
 
 
 			EditorNode::add_io_error("Can't write data pack to:\n "+p_path);
 			EditorNode::add_io_error("Can't write data pack to:\n "+p_path);
-			return ERR_FILE_CANT_READ;
+			return ERR_FILE_CANT_WRITE;
 		}
 		}
 	}
 	}