Project

General

Custom queries

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 over 11 years ago. Updated over 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
#2

Updated by Tomáš Strachota over 11 years ago

  • Related to Bug #4504: hammer-cli-katello needs own exception handler added
#3

Updated by Tomáš Strachota over 11 years ago

  • Status changed from New to Closed
Actions

Also available in: Atom PDF