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

Fix returning NoProjectFound for any project load error #985

Merged

Conversation

kennethloeffler
Copy link
Member

In #917, we accidentally changed ServeSession::new's project loading logic so that it always returns ServeSession::ProjectNotFound if the load fails for any reason. This PR fixes this so that it returns the right error when there is an error loading the project, and moves the NoProjectFound error to project::Error, since I think it makes more sense there.

@kennethloeffler kennethloeffler added the skip changelog PRs that may skip the changelog enforcement check label Nov 5, 2024
@kennethloeffler kennethloeffler changed the title Fix returning NoProjectFound session for any project load error Fix returning NoProjectFound for any project load error Nov 5, 2024
@kennethloeffler kennethloeffler added the scope: cli Relevant to the Rojo CLI label Nov 6, 2024
@kennethloeffler kennethloeffler merged commit 80c406f into rojo-rbx:master Nov 8, 2024
7 of 8 checks passed
@kennethloeffler kennethloeffler deleted the dont-eat-my-errors-please branch November 8, 2024 08:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
scope: cli Relevant to the Rojo CLI skip changelog PRs that may skip the changelog enforcement check
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants