Skip to content

Commit

Permalink
fix: return error on invalid connection string
Browse files Browse the repository at this point in the history
  • Loading branch information
adityathebe committed Sep 5, 2024
1 parent e3655c3 commit 638f89e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion context/connection.go
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ func FindConnectionByURL(ctx Context, connectionString string) (*models.Connecti

name, namespace, found := extractConnectionNameType(connectionString)
if !found {
return nil, nil
return nil, fmt.Errorf("invalid connection string: %q. Must be in connection://<namespace>/<name> format", connectionString)
}

connection, err := FindConnection(ctx, name, namespace)
Expand Down

0 comments on commit 638f89e

Please sign in to comment.