-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Query: always return a string in the
lastError
field (#2809)
* Query: always return a string in the `lastError` field While testing out the new React UI, I have found out that some errors return empty dicts when marshalled into the JSON format. The response looks like this: ``` {..., "lastError": {}} ``` And then, obviously, the UI fails to parse that. Add a `stringifiedError` type with tests which ensures that we always get a string. Signed-off-by: Giedrius Statkevičius <giedriuswork@gmail.com> * CHANGELOG: add PR number + remove whitespace Signed-off-by: Giedrius Statkevičius <giedriuswork@gmail.com> * query/storeset: fix a subtle bug Signed-off-by: Giedrius Statkevičius <giedriuswork@gmail.com> * Make changes according to Bartek's suggestions Signed-off-by: Giedrius Statkevičius <giedriuswork@gmail.com>
- Loading branch information
Showing
3 changed files
with
48 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
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