We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 98944bf commit 5cb3f9dCopy full SHA for 5cb3f9d
packages/wrangler/src/hyperdrive/index.ts
@@ -154,7 +154,6 @@ export function getOriginFromArgs<
154
): PartialUpdate extends true ? OriginConfig | undefined : OriginConfig {
155
if (args.connectionString) {
156
const url = new URL(args.connectionString);
157
- const errorMessages = [];
158
if (
159
url.port === "" &&
160
(url.protocol == "postgresql:" || url.protocol == "postgres:")
@@ -163,7 +162,7 @@ export function getOriginFromArgs<
163
162
}
164
165
if (url.protocol === "") {
166
- errorMessages.push(
+ throw new UserError(
167
"You must specify the database protocol - e.g. 'postgresql'."
168
);
169
} else if (url.protocol !== "postgresql:" && url.protocol !== "postgres:") {
0 commit comments