Different format of error string
This commit is contained in:
parent
bc020b2830
commit
c66ba0e169
4
pkg.go
4
pkg.go
@ -52,10 +52,10 @@ func callback(wrapped Error) {
|
|||||||
func (wrapped Error) Error() string {
|
func (wrapped Error) Error() string {
|
||||||
var code string
|
var code string
|
||||||
if wrapped.Code != "" {
|
if wrapped.Code != "" {
|
||||||
code = wrapped.Code + " "
|
code = wrapped.Code + ":"
|
||||||
}
|
}
|
||||||
return fmt.Sprintf(
|
return fmt.Sprintf(
|
||||||
"%s[%s:%d] %s",
|
"[%s%s:%d] %s",
|
||||||
code,
|
code,
|
||||||
wrapped.File,
|
wrapped.File,
|
||||||
wrapped.Line,
|
wrapped.Line,
|
||||||
|
Loading…
Reference in New Issue
Block a user