Commit b28fe61a139ab486d8098a954625482ba59b7056

Stefan Sperling 2019-05-15T07:15:57

apply_unveil(): use GOT_DIR_NOT_EMPTY

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/got/got.c b/got/got.c
index 17b7013..30aca9d 100644
--- a/got/got.c
+++ b/got/got.c
@@ -240,7 +240,7 @@ apply_unveil(const char *repo_path, int repo_read_only,
 				snprintf(err_msg, sizeof(err_msg),
 				    "%s: directory exists and is not empty",
 				    worktree_path);
-				err = got_error_msg(GOT_ERR_BAD_PATH,
+				err = got_error_msg(GOT_ERR_DIR_NOT_EMPTY,
 				    err_msg);
 			}
 		}