Merge pull request #7681 from syseleven/improve-error-message

Improve error message for POST queries
This commit is contained in:
Michael Friedrich 2019-12-03 13:14:23 +01:00 committed by GitHub
commit 857e32ad1d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -65,7 +65,8 @@ bool ModifyObjectHandler::HandleRequest(
if (attrsVal.GetReflectionType() != Dictionary::TypeInstance) {
HttpUtility::SendJsonError(response, params, 400,
"Invalid type for 'attrs' attribute specified. Dictionary type is required.");
"Invalid type for 'attrs' attribute specified. Dictionary type is required."
"Or is this a POST query and you missed adding a 'X-HTTP-Method-Override: GET' header?");
return true;
}