Project

General

Profile

Actions

Bug #4383

closed

Need to provide users with more details on failures or errors that occur when executing a command.

Added by Brad Buckingham almost 11 years ago. Updated almost 11 years ago.

Status:
Closed
Priority:
High
Assignee:
-
Category:
Hammer core
Target version:
-
Difficulty:
Triaged:
Team Backlog:
Fixed in Releases:
Found in Releases:
In Kanboard:

Description

Unless I am mistaken, there is not currently a way to provide users with details on the true failure of a command.

For example, when a developer creates a new command, they have the ability to provide something like the following:

failure_message "Could not update the filter rule"

Unfortunately, this doesn't give enough detail to the user to address the failure. More information is, however, typically available in the response received from the server. If possible, we should expose some of those details to the user.

For example, the response from the server, might be:
Completed 422 Unprocessable Entity in 685.1ms (Views: 0.8ms | ActiveRecord: 152.3ms)
With body: {"displayMessage":"Validation failed: Invalid filter rule specified, 'version' cannot be specified in the same tuple as 'min_version' or 'max_version'","errors":{"base":["Invalid filter rule specified, 'version' cannot be specified in the same tuple as 'min_version' or 'max_version'"]}}


Related issues 1 (0 open1 closed)

Related to Katello - Bug #4504: hammer-cli-katello needs own exception handlerClosedTomáš Strachota02/28/2014Actions
Actions

Also available in: Atom PDF