Skip to content
This repository has been archived by the owner on Aug 12, 2022. It is now read-only.

Add column name to resolver errors #115

Merged
merged 1 commit into from
Nov 24, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion provider/schema/execution.go
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ func (e *ExecutionData) resolveColumns(ctx context.Context, meta ClientMeta, res
}
// check if column resolver defined an IgnoreError function, if it does check if ignore should be ignored.
if c.IgnoreError == nil || !c.IgnoreError(err) {
return err
return fmt.Errorf("column %s: %w", c.Name, err)
}

if reflect2.IsNil(c.Default) {
Expand Down