Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/expr-lang/expr
/ format
Method
format
file/error.go:74–85 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
72
}
73
74
func
(e *Error) format() string {
75
if
e.Snippet ==
""
{
76
return
e.Message
77
}
78
return
fmt.Sprintf(
79
"%s (%d:%d)%s"
,
80
e.Message,
81
e.Line,
82
e.Column+1,
// add one to the 0-based column for display
83
e.Snippet,
84
)
85
}
Callers
1
Error
Method · 0.95
Calls
1
Sprintf
Method · 0.80
Tested by
no test coverage detected