mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-19 03:00:31 +00:00
Fix crash when driver fuzzer finds language-server. (#4847)
The driver fuzzer, unlike the actual driver, provides a null `input_stream`, which caused the `language-server` subcommand to crash.
This commit is contained in:
1 parent
3d39ab67bf
commit
809c53287a
2 files changed
+6
No files matched your search
@@ -22,6 +22,7 @@ auto LanguageServerSubcommand::Run(DriverEnv& driver_env) -> DriverResult {
|
||||
if (!driver_env.input_stream) {
|
||||
*driver_env.error_stream
|
||||
<< "error: language-server requires input_stream\n";
|
||||
return {.success = false};
|
||||
}
|
||||
|
||||
auto err =
|
||||
|
||||
Reference in new issue
Block a user