added error prompt for invaled nodeID

This commit is contained in:
2023-03-20 22:55:16 +00:00
parent d54168e0cd
commit 19a94783a0

View File

@@ -128,7 +128,7 @@ func webGatewayHandler(backend *core.Backend) func(w http.ResponseWriter, r *htt
publicKey, errPK := core.PublicKeyFromPeerID(nodeIDA)
if !validNodeID && errPK != nil {
http.Error(w, "404 not found", http.StatusNotFound)
http.Error(w, "Invalid NodeID", http.StatusBadRequest)
return
}
if !validNodeID {