Fixing location/contact deletion.

This commit is contained in:
stephb9959
2021-10-21 08:44:35 -07:00
parent e49cef57e6
commit f28ef3f65b
6 changed files with 9 additions and 4 deletions

View File

@@ -24,7 +24,7 @@ namespace OpenWifi{
AddLocationExtendedInfo(E, Obj);
ObjArr.add(Obj);
} else {
return BadRequest(RESTAPI::Errors::UnknownId + " ("+i+")");
return BadRequest(RESTAPI::Errors::LocationMustExist + " ("+i+")");
}
}
Poco::JSON::Object Answer;