use error response from backend to display correct error message#27
use error response from backend to display correct error message#27SuyashSalampuria wants to merge 2 commits into
Conversation
algomaster99
left a comment
There was a problem hiding this comment.
I can't notice any difference on my machine. Can you send a screencast?
30c47ff to
8b46ea0
Compare
| const errors = errorMessage[field]; | ||
| errors.forEach(err => | ||
| ( | ||
| <p> {field} : {err} </p> |
There was a problem hiding this comment.
@algomaster99 I see the control is reaching here but this line is not returned to the screen.
There was a problem hiding this comment.
@SuyashSalampuria forEach always returns undefined, which is the reason you cannot see any <p> element. You can use map and this will be resolved. :)
algomaster99
left a comment
There was a problem hiding this comment.
There was some errors with your submission
I think the error is still very equivocal. No one can figure out why the error came at the first go.
Anyway, You don't need to hardcode the error message on the frontend. That's what I am saying. You can edit the backend to throw such error messages. Did you refer to full_clean? If not, please do it. I also suggest referring to omniport-frontend-faculty-profile's code to see how it's done.
8b46ea0 to
10c55b1
Compare
|
@SuyashSalampuria sorry I really forgot about this |



Fixes #24