mirror of https://github.com/microsoft/vcpkg.git
`export`: When package name is invalid, error out earlier and with a better message
This commit is contained in:
parent
51e2e19d06
commit
2559c97736
|
|
@ -288,7 +288,7 @@ namespace vcpkg::Dependencies
|
|||
if (auto spgh = maybe_spgh.get())
|
||||
return ExportPlanAction{spec, {nullopt, nullopt, *spgh}, request_type};
|
||||
|
||||
return ExportPlanAction{spec, {nullopt, nullopt, nullopt}, request_type};
|
||||
Checks::exit_with_message(VCPKG_LINE_INFO, "Could not find package %s", spec);
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue