Skip to content

Commit

Permalink
shell: fix panic when using an int argument (#9039)
Browse files Browse the repository at this point in the history
Signed-off-by: Helder Correia <[email protected]>
  • Loading branch information
helderco authored Nov 25, 2024
1 parent 0e26934 commit 64850c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion querybuilder/marshal.go
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ func marshalValue(ctx context.Context, v reflect.Value) (string, error) {
}
return fmt.Sprintf("{%s}", strings.Join(nonNullElems, ",")), nil
default:
panic(fmt.Errorf("unsupported argument of kind %s", t.Kind()))
return "", fmt.Errorf("unsupported argument of kind %s", t.Kind())
}
}

Expand Down

0 comments on commit 64850c4

Please sign in to comment.