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);
|
lResp := fRESTClient.Head(lURL);
|
||||||
else
|
else
|
||||||
begin
|
begin
|
||||||
raise Exception.Create('Error Message');
|
raise Exception.Create('Invalid HTTP method');
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
@ -3984,7 +3984,7 @@ begin
|
|||||||
|
|
||||||
if lReqETag <> GetSHA1HashFromString(Data) then
|
if lReqETag <> GetSHA1HashFromString(Data) then
|
||||||
begin
|
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;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user