Skip to content

Commit 5094367

Browse files
committed
show detail in error.
1 parent 284e081 commit 5094367

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

query.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ func (e *QueryError) Error() string {
1818
if e.Message != "" {
1919
text += fmt.Sprintf(", message: %s", e.Message)
2020
}
21+
if e.Detail != "" {
22+
text += fmt.Sprintf(", datail: %s", e.Detail)
23+
}
2124
if e.Kind != "" {
2225
text += fmt.Sprintf(", kind: %s", e.Kind)
2326
}

0 commit comments

Comments
 (0)