This commit is contained in:
Dustin Pianalto 2021-11-18 00:30:44 -09:00
parent cf0fb5b111
commit 4eb071f72c

View File

@ -3,6 +3,7 @@ package errors
import (
"bytes"
"fmt"
"log"
)
var (
@ -47,6 +48,7 @@ func E(args ...interface{}) error {
case error:
e.Err = arg
default:
log.Println(args)
return Errorf("unknown type %T with value %v in error call", arg, arg)
}
}