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

Errors sent with SendError don't look similar to SendException #96

Closed
pjaybell opened this issue Aug 1, 2017 · 0 comments
Closed

Errors sent with SendError don't look similar to SendException #96

pjaybell opened this issue Aug 1, 2017 · 0 comments

Comments

@pjaybell
Copy link

pjaybell commented Aug 1, 2017

The SendError is the one that uses the inbuilt error_get_last() function that returns an array not an exception.

The SendError code then tries to create an ErrorException from the error details on https://github.com/MindscapeHQ/raygun4php/blob/master/src/Raygun4php/RaygunClient.php#L85. This loses the stack trace and the original stack trace is included in the message as the error_get_last()['message'] is the full stack trace converted to a new line delimited string.

SendException seems to send the error in a format that includes the stack trace.

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

No branches or pull requests

1 participant