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

Fix TypeError(s) and serialize ExceptionInfo #111

Merged
merged 3 commits into from
Mar 28, 2017
Merged

Conversation

MichaelMackus
Copy link
Contributor

@MichaelMackus MichaelMackus commented Nov 14, 2016

Fixes #100, fixes #106

getExceptionTrace expects Object, and $chain[0] is already a Trace
Object
Otherwise the exception data doesn't get serialized for API call.
@nocive
Copy link
Contributor

nocive commented Feb 2, 2017

bump

@MichaelMackus
Copy link
Contributor Author

bump @brianr @rokob @jessewgibbs

Copy link
Contributor

@rokob rokob left a comment

Choose a reason for hiding this comment

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

LGTM

@@ -307,7 +307,7 @@ protected function getBody($toLog, $context)
if ($toLog instanceof ErrorWrapper) {
$content = $this->getErrorTrace($toLog);
} elseif ($toLog instanceof $baseException) {
$content = $this->getExceptionTrace($baseException);
$content = $this->getExceptionTrace($toLog);
Copy link
Contributor

Choose a reason for hiding this comment

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

👍

@@ -501,7 +502,7 @@ protected function getRequest()
$request->$key = $val;
}
}
if (is_array($_SESSION) && count($_SESSION) > 0) {
if (isset($_SESSION) && is_array($_SESSION) && count($_SESSION) > 0) {
Copy link
Contributor

Choose a reason for hiding this comment

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

👍

@rokob rokob merged commit 3894ff0 into rollbar:master Mar 28, 2017
@MichaelMackus
Copy link
Contributor Author

Woohoo thanks! :)

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.

TypeError v1.0.0-beta Errors
3 participants