Commit a28929ee authored by PhiBo's avatar PhiBo 🚀

Change error message to reflect value name

parent 4b860cdf
...@@ -12,7 +12,7 @@ void handleAPIHostname() ...@@ -12,7 +12,7 @@ void handleAPIHostname()
server->send(200, "text/plain", hostname); server->send(200, "text/plain", hostname);
} else if (server->method() == HTTP_POST) { } else if (server->method() == HTTP_POST) {
if(server->args() == 0) { if(server->args() == 0) {
server->send(400, "text/plain", "No argument given"); server->send(400, "text/plain", "No hostname given");
return; return;
} }
hostname_s = server->arg("hostname"); hostname_s = server->arg("hostname");
...@@ -34,7 +34,7 @@ void handleAPIPort() ...@@ -34,7 +34,7 @@ void handleAPIPort()
server->send(200, "text/plain", String(port)); server->send(200, "text/plain", String(port));
} else if (server->method() == HTTP_POST) { } else if (server->method() == HTTP_POST) {
if(server->args() == 0) { if(server->args() == 0) {
server->send(400, "text/plain", "No argument given"); server->send(400, "text/plain", "No port given");
return; return;
} }
port = server->arg("port").toInt(); port = server->arg("port").toInt();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment