Formatting in error message

This commit is contained in:
Bryan Boreham committed 2014-10-22 18:27:55 +01:00
1 parent 94a812d98f
commit c63b163703
1 file changed
+2 -2
+2 -2
View File
@@ -66,7 +66,7 @@ func ListenHttp(domain string, db Zone, port int) {
if !ok {
httpErrorAndLog(
Error, w, "Internal error", http.StatusInternalServerError,
"Unexpected error from DB", err)
"Unexpected error from DB: %s", err)
return
} else if dup.Ident != identifier {
http.Error(w, err.Error(), http.StatusConflict)
@@ -95,7 +95,7 @@ func ListenHttp(domain string, db Zone, port int) {
if _, ok := err.(LookupError); !ok {
httpErrorAndLog(
Error, w, "Internal error", http.StatusInternalServerError,
"Unexpected error from DB", err)
"Unexpected error from DB: %s", err)
return
}
}