mirror of
https://gitee.com/johng/gf.git
synced 2024-12-01 19:57:40 +08:00
comment update for package gerror
This commit is contained in:
parent
cca438d77f
commit
2679f92aa8
@ -237,7 +237,7 @@ func WrapCodeSkipf(code, skip int, err error, format string, args ...interface{}
|
||||
}
|
||||
}
|
||||
|
||||
// Cause returns the error code of current error.
|
||||
// Code returns the error code of current error.
|
||||
// It returns -1 if it has no error code or it does not implements interface Code.
|
||||
func Code(err error) int {
|
||||
if err != nil {
|
||||
|
Loading…
Reference in New Issue
Block a user