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

Fail if compiler discovery fails #4331

Merged
merged 2 commits into from
Nov 23, 2022
Merged

Conversation

mattgodbolt
Copy link
Member

If discovery fails for whatever reason (no compilers; compiler creation threw an exception) we now see this:

error: Exception while processing compilers: ...blah some thing that went wrong goes here...
error: #### No compilers found: no compilation will be done!
error: Top-level error (shutting down): No compilers found due to error or no configuration {"stack":"Error: No compilers found due to error or no configuration\n    at CompilerFinder.find (/home/matthew/dev/ce/compiler-explorer/lib/compiler-finder.js:408:19)\n    at processTicksAndRejections (node:internal/process/task_queues:96:5)\n    at async main (/home/matthew/dev/ce/compiler-explorer/app.js:476:36)"}

and the process exits.

@mattgodbolt mattgodbolt merged commit f371b10 into main Nov 23, 2022
@mattgodbolt mattgodbolt deleted the mg/fail_on_discovery_fail branch November 23, 2022 14:25
mattgodbolt added a commit that referenced this pull request Dec 20, 2022
* Fail if compiler discovery fails
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.

None yet

2 participants