Commit Diff


commit - 97a19438305ebc4e0078852274b23dfe1c8f615d
commit + d90bcdd6028e6305e7f6a3303937db80d4eb9cf4
blob - a884509db57de5c20cf22115f57a49b33ce57b75
blob + 16706774a18a19052ac11e75ca48d2d8e84678e9
--- gotweb/gotweb.c
+++ gotweb/gotweb.c
@@ -1609,7 +1609,7 @@ gw_load_got_path(struct gw_trans *gw_trans, struct gw_
 
 	dt = opendir(dir_test);
 	if (dt == NULL) {
-		error = got_error_from_errno2("bad path", dir_test);
+		error = got_error_path(gw_dir->name, GOT_ERR_NOT_GIT_REPO);
 		goto errored;
 	} else
 		opened = 1;