From b37afd25d45bc906605821c0f712619b6e6969df Mon Sep 17 00:00:00 2001 From: amirrezaask Date: Sat, 5 Dec 2020 13:37:04 +0330 Subject: [PATCH] add .Error method to error struct --- bootstrap/pkg/core/errors.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bootstrap/pkg/core/errors.go b/bootstrap/pkg/core/errors.go index 8b9b5d9..ae536ab 100644 --- a/bootstrap/pkg/core/errors.go +++ b/bootstrap/pkg/core/errors.go @@ -43,6 +43,10 @@ func (e *Error) ToDebugStr() string { return e.msg } +func (e *Error) Error() string { + return e.msg +} + func MakeError(rt *Runtime, msg string) IError { return &Error{ msg: msg,