ohtanii / trpo_json

MIT License
0 stars 0 forks source link

Fix error message #2

Closed SemenMartynov closed 6 years ago

SemenMartynov commented 6 years ago

Error message should contain uploaded file name https://github.com/SemenMartynov/SPbPU_TRPO_2017/blob/master/Task01.RUS.txt#L45

ohtanii commented 6 years ago

Now it's ok) Filename is shown in "resource" bbw8dwl-wo0

SemenMartynov commented 6 years ago

Please link your commit with the git issues via comments.

SemenMartynov commented 6 years ago

I don't see errorPlace.

ohtanii commented 6 years ago

errorPlace is shown with errorMessge bbw8dwl-wo0

SemenMartynov commented 6 years ago

Expected format:

{
 "errorCode"  : 12345,
 "errorMessage" : ["verbose, plain language description of the problem with hints about how to fix it]",
 "errorPlace" : ["highlight the point where error has occurred"],
 "resource"   : ["filename"],
 "request-id" : ["the request id generated by the API for easier tracking of errors"],
}
ohtanii commented 6 years ago

Fixed m-czzhjwaza

SemenMartynov commented 6 years ago

OK, looks good.