diff --git a/core/result/failure/faillure.go b/core/result/failure/faillure.go index 428a6ad..ecaa8b8 100644 --- a/core/result/failure/faillure.go +++ b/core/result/failure/faillure.go @@ -73,6 +73,9 @@ type failure struct { } func (f failure) Name() string { + if f.model.Name == nil { + return "" + } return *f.model.Name } @@ -85,6 +88,9 @@ func (f failure) Error() string { } func (f failure) Stack() string { + if f.model.Stack == nil { + return "" + } return *f.model.Stack }