Skip to content

Commit c86e503

Browse files
refactor: improve error message clarity for URL parsing failures
Co-authored-by: dlevy-msft-sql <194277063+dlevy-msft-sql@users.noreply.github.com>
1 parent 725afde commit c86e503

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

msdsn/conn_str.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -837,7 +837,7 @@ func splitConnectionStringURL(dsn string) (map[string]string, error) {
837837
u, err := url.Parse(dsn)
838838
if err != nil {
839839
// Do not include the original error which may contain credentials
840-
return res, fmt.Errorf("unable to parse connection string")
840+
return res, fmt.Errorf("unable to parse connection string: invalid URL format")
841841
}
842842

843843
if u.Scheme != "sqlserver" {

0 commit comments

Comments
 (0)