Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Treat failure to load entry point as warning instead of error #631

Merged
merged 3 commits into from
Oct 4, 2022
Merged

Conversation

ejizba
Copy link
Contributor

@ejizba ejizba commented Sep 28, 2022

Fixes #630

Most of the apps we saw with an error had "main" set to index.js but that file didn't exist. We don't don't want to break those existing users, so we will convert the error to a warning. However, we still want to throw an error in the new programming model (which obviously doesn't have any existing users) - so we will use the existence of "function.json" files to determine which model is being used and act accordingly. EDIT: Changed our mind on this.

@ejizba ejizba changed the title Treat failure to load entry point as warning instead of error Handle entrypoint load failures based on the programming model being used Sep 28, 2022
src/startApp.ts Outdated Show resolved Hide resolved
@ejizba
Copy link
Contributor Author

ejizba commented Oct 3, 2022

Changing back so that all errors are treated as warnings for the entry point scenario. It's simpler and much less risky - discussed in further detail offline.

@ejizba ejizba changed the title Handle entrypoint load failures based on the programming model being used Treat failure to load entry point as warning instead of error Oct 4, 2022
@ejizba ejizba merged commit abf81b9 into v3.x Oct 4, 2022
@ejizba ejizba deleted the ej/fix branch October 4, 2022 00:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Worker was unable to load entry point
4 participants