Skip to content

Conversation

@johannesduesing
Copy link

Reason for this PR
delphi-hub/delphi-webapi#59 introduces 400 Bad Request responses on client-side query errors, including detailed messages for syntactical / semantical errors. The CLI does not support those detailed error responses yet, and will simply print "Search Request Failed" on any non-200 response from the delphi-webapi.

Changes in this PR
Whenever a 400 Bad Request is returned by the delphi-webapi on executing the search command, the error message will be extracted from the response and printed to the console. In case of invalid field names in a query, an additional error output will display the invalid field names as a comma-seperated list.

@johannesduesing johannesduesing added this to the 0.9.6 milestone Jun 18, 2020
@johannesduesing johannesduesing self-assigned this Jun 18, 2020
@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities (and Security Hotspot 0 Security Hotspots to review)
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

Copy link
Member

@bhermann bhermann left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That looks good for me!

@bhermann bhermann merged commit 593288e into develop Jul 7, 2020
@bhermann bhermann deleted the bugfix/errormessages branch July 7, 2020 08:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants