[python] Fix docs URL in error message (#10544)

This commit is contained in:
Nathan Rajlich
2023-09-19 15:07:43 -03:00
committed by GitHub
parent b0898a6659
commit f5ca497b75
2 changed files with 7 additions and 2 deletions

View File

@@ -30,7 +30,7 @@ if 'handler' in __vc_variables or 'Handler' in __vc_variables:
base = __vc_module.handler if ('handler' in __vc_variables) else __vc_module.Handler
if not issubclass(base, BaseHTTPRequestHandler):
print('Handler must inherit from BaseHTTPRequestHandler')
print('See the docs https://vercel.com/docs/runtimes#advanced-usage/advanced-python-usage')
print('See the docs: https://vercel.com/docs/functions/serverless-functions/runtimes/python')
exit(1)
print('using HTTP Handler')
@@ -307,5 +307,5 @@ elif 'app' in __vc_variables:
else:
print('Missing variable `handler` or `app` in file "__VC_HANDLER_ENTRYPOINT".')
print('See the docs https://vercel.com/docs/runtimes#advanced-usage/advanced-python-usage')
print('See the docs: https://vercel.com/docs/functions/serverless-functions/runtimes/python')
exit(1)