Fix new
License: MIT Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
This commit is contained in:
parent
52f9060e0a
commit
fd374fa180
@ -1,6 +1,7 @@
|
||||
package aerrors
|
||||
|
||||
import (
|
||||
"errors"
|
||||
"fmt"
|
||||
|
||||
"golang.org/x/xerrors"
|
||||
@ -15,7 +16,7 @@ func New(retCode uint8, message string) ActorError {
|
||||
|
||||
msg: "tried creating an error and setting RetCode to 0",
|
||||
frame: xerrors.Caller(1),
|
||||
err: err,
|
||||
err: errors.New(message),
|
||||
}
|
||||
}
|
||||
return &actorError{
|
||||
|
Loading…
Reference in New Issue
Block a user