-
-
Notifications
You must be signed in to change notification settings - Fork 79
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Returns an error message when an Invalid occurs when validating a con…
…trolpanel field (#1771) * Returns an error message when an Invalid occurs when validating a controlpanel field * Translates controlpanel validation error message * Does not return the "error" key as an object in controlpanel When deserializing the controlpanel, do not return the "error" key as an object, but rather as a string "ValidationError". On the front end, we are unable to convert an object to json. So we need to return a string. This is the same way content deserialization does. * Improves error handling --------- Co-authored-by: David Glick <[email protected]>
- Loading branch information
Showing
3 changed files
with
28 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Returns an error message when an Invalid error occurs when validating a controlpanel field. Also translates the message. @wesleybl |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters