`export`: When package name is invalid, error out earlier and with a better message

This commit is contained in:
Alexander Karatarakis 2017-04-28 15:51:20 -07:00
parent 51e2e19d06
commit 2559c97736
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}
};