瀏覽代碼

M_do_copy: Add a warning for failed copy

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@66775 15284696-431f-4ddb-bdfa-cd5b030d7da7
Huidae Cho 9 年之前
父節點
當前提交
b8089090cf
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      lib/manage/do_copy.c

+ 2 - 0
lib/manage/do_copy.c

@@ -64,6 +64,8 @@ int M_do_copy(int n, const char *old, const char *mapset, const char *new)
 	    }
 	    G_file_name(path2, list[n].element[i], new, G_mapset());
 	    if (G_recursive_copy(path, path2) == 1) {
+		G_warning(_("Unable to copy <%s> to current mapset as <%s>"),
+			  G_fully_qualified_name(old, mapset), new);
 		result = 1;
 	    }
 	    else {