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

Reduce the error string to the human readable content #21

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

rmescandon
Copy link

the problem of concatenating Err and Message is that second includes the first and the result is a little bit weird and does not give more info than only the Message. See one example of such error structure:

<- 404 Not Found [[application/json;charset=utf-8]] {
'value': {
'error': 'no such element',
'message': 'no such element: Unable to locate element: {"method":"css selector","selector":"#IDToken1"}\n (Session info: headless chrome=102.0.5005.182)',
'stacktrace': ''
}
}

the problem of concatenating Err and Message is that second
includes the first and the result is a little bit weird and does
not give more info than only the Message. See one example
of such error structure:

<- 404 Not Found [[application/json;charset=utf-8]]
{
    'value': {
        'error': 'no such element',
        'message': 'no such element: Unable to locate element: {"method":"css selector","selector":"#IDToken1"}\n  (Session info: headless chrome=102.0.5005.182)',
        'stacktrace': ''
    }
}
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