Skip to content

Commit

Permalink
update msg
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Oct 8, 2024
1 parent f36226f commit a74cfa9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/presets/firebase/preset.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ const firebase = defineNitroPreset(
serverFunctionName &&
serverFunctionName !== genSafeVariableName(serverFunctionName)
) {
throw new Error("`serverFunctionName` cannot include dashes");
throw new Error(`\`firebase.serverFunctionName\` must be a valid JS variable name: \`${serverFunctionName}\``);
}

// Replace __firebaseServerFunctionName__ to actual name in entries
Expand Down

0 comments on commit a74cfa9

Please sign in to comment.