chiark / gitweb /
Infra: in dgit-repos-server, produce less verbose message when policy hook rejects
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 16 May 2015 23:10:33 +0000 (00:10 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 31 May 2015 10:54:12 +0000 (11:54 +0100)
infra/dgit-repos-server

index 1492794..036469e 100755 (executable)
@@ -275,7 +275,7 @@ sub policyhook {
     debugcmd '+',@cmd;
     my $r = system @cmd;
     die "system: $!" if $r < 0;
-    die "hook (".(shellquote @cmd).") failed ($?)"
+    die "dgit-repos-server: policy hook failed (or rejected) ($?)\n"
        if $r & ~($policyallowbits << 8);
     printdebug sprintf "hook => %#x\n", $r;
     return $r >> 8;