Skip to content

Commit c6defcb

Browse files
taeoldjoehan
andauthored
Update message when users try to update from 1st to 2nd Gen function (#7611)
* Update message when users try to update from 1st to 2nd Gen function using the same function name. CLI has always block the transition 1st Gen to 2nd Gen in the CLI - change here simply update the product name and point users to our public doc that documents changes necessary to transition to 2nd gen function. Aside: Cloud Run functions doesn't allow for 1st and 2nd gen functions to share the same name. * messaging nit. * Say 'see' instead of 'please'. --------- Co-authored-by: joehan <[email protected]>
1 parent 4beac36 commit c6defcb

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/deploy/functions/release/planner.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -316,9 +316,8 @@ export function checkForIllegalUpdate(want: backend.Endpoint, have: backend.Endp
316316
export function checkForV2Upgrade(want: backend.Endpoint, have: backend.Endpoint): void {
317317
if (want.platform === "gcfv2" && have.platform === "gcfv1") {
318318
throw new FirebaseError(
319-
`[${getFunctionLabel(
320-
have,
321-
)}] Upgrading from GCFv1 to GCFv2 is not yet supported. Please delete your old function or wait for this feature to be ready.`,
319+
`[${getFunctionLabel(have)}] Upgrading from 1st Gen to 2nd Gen is not yet supported. ` +
320+
"See https://firebase.google.com/docs/functions/2nd-gen-upgrade before migrating to 2nd Gen.",
322321
);
323322
}
324323
}

0 commit comments

Comments
 (0)