Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve error to include caused_by reason #1623

Open
wants to merge 3 commits into
base: 8.x
Choose a base branch
from

Conversation

bashilbers
Copy link

Instead of

[reason: failed to execute script]

You will now get more details about the failure:

[illegal_argument_exception:Variable [count] is not defined.] [reason: failed to execute script]

Instead of 

`[reason: failed to execute script]`

You will now get more details about the failure:

`[illegal_argument_exception:Variable [count] is not defined.] [reason: failed to execute script]`
Copy link
Owner

@ruflin ruflin left a comment

Choose a reason for hiding this comment

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

+1 on providing more details.

Could you also add a changelog entry?

@@ -90,11 +90,21 @@ public function getError()
}

$rootError = $error;
$message = $rootError['reason'];
Copy link
Owner

Choose a reason for hiding this comment

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

Do we need some checks if the fields actually exist (here and below)

@bashilbers
Copy link
Author

Done, can you check why the codestyle linter is failing for me?

@ruflin
Copy link
Owner

ruflin commented Apr 9, 2019

You should be able to run make lint on your machine and it will fix the issue for you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants