Skip to content

ExtendedException bug #69

@mortenscheel

Description

@mortenscheel

$message .= ' (' . $responseBody->error->message . ')';

Calling ->error->message when error is null emits a warning, which in frameworks like Laravel is turned into an ErrorException.
You should probably check if it's set before accessing it.
In case it's relevant, I ran into this bug when there was a 401 response, so the AuthException was instantiated with a $responseBody that apparently didn't include an error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions