Formatting in error message
This commit is contained in:
1 parent
94a812d98f
commit
c63b163703
1 file changed
+2
-2
+2
-2
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user