Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
IRMA
Github mirrors
irmago
Commits
b8eadff3
Commit
b8eadff3
authored
Apr 13, 2019
by
Sietse Ringers
Browse files
fix: include stack trace in panic catcher
parent
c06eb1fc
Changes
1
Hide whitespace changes
Inline
Side-by-side
irmaclient/session.go
View file @
b8eadff3
...
...
@@ -5,6 +5,7 @@ import (
"fmt"
"net/url"
"reflect"
"runtime/debug"
"strings"
"github.com/go-errors/errors"
...
...
@@ -584,7 +585,7 @@ func panicToError(e interface{}) *irma.SessionError {
default
:
// nop
}
fmt
.
Println
(
"Panic: "
+
info
)
return
&
irma
.
SessionError
{
ErrorType
:
irma
.
ErrorPanic
,
Info
:
info
}
return
&
irma
.
SessionError
{
ErrorType
:
irma
.
ErrorPanic
,
Info
:
info
+
"
\n\n
"
+
string
(
debug
.
Stack
())
}
}
// Idempotently send DELETE to remote server, returning whether or not we did something
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment