Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
detect url with no spaces
  • Loading branch information
kyleconroy committed Jun 5, 2024
commit 7fa36d7cd00eddf136a35d906daed9368efbf5b1
4 changes: 2 additions & 2 deletions internal/dbmanager/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ func (m *ManagedClient) CreateDatabase(ctx context.Context, req *CreateDatabaseR
}
}

if base == "" {
return nil, fmt.Errorf("no postgres server found")
if strings.TrimSpace(base) == "" {
return nil, fmt.Errorf("no PostgreSQL database server found")
}

serverUri := m.replacer.Replace(base)
Expand Down