Skip to content

Commit deba71c

Browse files
authored
Merge pull request #68 from keshav-dataco/feature/pass-underlying-error
Pass underlying error when getting workgroup
2 parents 69fed6b + 64c0154 commit deba71c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

go/connection.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ func (c *Connection) QueryContext(ctx context.Context, query string, namedArgs [
355355
} else {
356356
obs.Log(WarnLevel, "workgroup "+DefaultWGName+" is used for "+wg.Name+".")
357357
return nil,
358-
fmt.Errorf("workgroup %q doesn't exist and workgroup remote creation is disabled", wg.Name)
358+
fmt.Errorf("workgroup %q doesn't exist and workgroup remote creation is disabled, due to: %v", wg.Name, err.Error())
359359
}
360360
} else {
361361
if *athenaWG.State != athena.WorkGroupStateEnabled {

0 commit comments

Comments
 (0)