Commit 55afbf19d730ecbbee0228be686ff3f5e57a13e8

Stefan Sperling 2018-09-08T12:15:13

tweak imsg-related error messages

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
diff --git a/include/got_error.h b/include/got_error.h
index d559f4d..8a462cd 100644
--- a/include/got_error.h
+++ b/include/got_error.h
@@ -97,11 +97,10 @@ static const struct got_error {
 	{ GOT_ERR_RECURSION,	"recursion limit reached" },
 	{ GOT_ERR_TIMEOUT,	"operation timed out" },
 	{ GOT_ERR_INTERRUPT,	"operation interrupted" },
-	{ GOT_ERR_PRIVSEP_READ,	"no data received from unprivileged process" },
-	{ GOT_ERR_PRIVSEP_LEN,	"unexpected amount of data received "
-				"from unprivileged process" },
-	{ GOT_ERR_PRIVSEP_PIPE,	"unprivileged process closed pipe" },
-	{ GOT_ERR_PRIVSEP_NO_FD,"out of file descriptors for privsep" },
+	{ GOT_ERR_PRIVSEP_READ,	"no data received in imsg" },
+	{ GOT_ERR_PRIVSEP_LEN,	"unexpected amount of data received in imsg" },
+	{ GOT_ERR_PRIVSEP_PIPE,	"privsep peer process closed pipe" },
+	{ GOT_ERR_PRIVSEP_NO_FD,"privsep file descriptor unavailable" },
 	{ GOT_ERR_PRIVSEP_MSG,	"unexpected message from unprivileged process" },
 	{ GOT_ERR_PRIVSEP_DIED,	"unprivileged process died unexpectedly" },
 	{ GOT_ERR_PRIVSEP_EXIT,	"bad exit code from unprivileged process" },