Skip to content

Commit

Permalink
fix: improve wrong usage message
Browse files Browse the repository at this point in the history
  • Loading branch information
brillout committed Nov 2, 2022
1 parent f1150c2 commit 2fa05d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion telefunc/node/server/runTelefunc/parseHttpRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ function assertUrl(runContext: { httpRequest: { url: string }; serverConfig: { t
const urlPathname = getUrlPathname(runContext.httpRequest.url)
assertUsage(
urlPathname === runContext.serverConfig.telefuncUrl,
`telefunc({ url }): The HTTP request \`url\` pathname \`${urlPathname}\` should be \`${runContext.serverConfig.telefuncUrl}\`. Make sure that \`url\` is the HTTP request URL, or change \`telefuncConfig.telefuncUrl\` to \`${urlPathname}\`.`
`telefunc({ url }): The pathname of \`url\` is \`${urlPathname}\` but it's expected to be \`${runContext.serverConfig.telefuncUrl}\`. Either make sure that \`url\` is the HTTP request URL, or set \`telefuncConfig.telefuncUrl\` to \`${urlPathname}\`.`
)
}

Expand Down

0 comments on commit 2fa05d5

Please sign in to comment.