mirror of
https://github.com/danieleteti/delphimvcframework.git
synced 2024-11-15 07:45:54 +01:00
Better exception error messages for mid-air edit collision
This commit is contained in:
parent
2e05917df3
commit
2732dd998a
@ -272,7 +272,7 @@ begin
|
||||
lResp := fRESTClient.Head(lURL);
|
||||
else
|
||||
begin
|
||||
raise Exception.Create('Error Message');
|
||||
raise Exception.Create('Invalid HTTP method');
|
||||
end;
|
||||
end;
|
||||
|
||||
|
@ -3984,7 +3984,7 @@ begin
|
||||
|
||||
if lReqETag <> GetSHA1HashFromString(Data) then
|
||||
begin
|
||||
raise EMVCException.Create(HTTP_STATUS.PreconditionFailed, 'mid-air collisions detected, cannot update or delete resource.');
|
||||
raise EMVCException.Create(HTTP_STATUS.PreconditionFailed, 'mid-air collisions detected (invalid "if-match" value), cannot update or delete resource.');
|
||||
end;
|
||||
end;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user