add .Error method to error struct
This commit is contained in:
parent
472dc78e8c
commit
b37afd25d4
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue