|
@@ -386,11 +386,13 @@ func (e *Exception) String() string {
|
|
}
|
|
}
|
|
|
|
|
|
func (e *Exception) Error() string {
|
|
func (e *Exception) Error() string {
|
|
- if e == nil || e.val == nil {
|
|
|
|
|
|
+ if e == nil {
|
|
return "<nil>"
|
|
return "<nil>"
|
|
}
|
|
}
|
|
var b bytes.Buffer
|
|
var b bytes.Buffer
|
|
- b.WriteString(e.val.String())
|
|
|
|
|
|
+ if e.val != nil {
|
|
|
|
+ b.WriteString(e.val.String())
|
|
|
|
+ }
|
|
e.writeShortStack(&b)
|
|
e.writeShortStack(&b)
|
|
return b.String()
|
|
return b.String()
|
|
}
|
|
}
|