Bug #4383
closedNeed to provide users with more details on failures or errors that occur when executing a command.
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'"]}}