Log invalid locator
This commit is contained in:
@@ -31,7 +31,7 @@ export default class FetchOneCommand extends Command<CommandContext> {
|
|||||||
const { locatorHash } = structUtils.parseLocator(this.locator, true);
|
const { locatorHash } = structUtils.parseLocator(this.locator, true);
|
||||||
const pkg = project.originalPackages.get(locatorHash);
|
const pkg = project.originalPackages.get(locatorHash);
|
||||||
if (!pkg) {
|
if (!pkg) {
|
||||||
report.reportError(0, `Invalid locator`);
|
report.reportError(0, `Invalid locator: ${this.locator}`);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -39,7 +39,7 @@ export default class InjectBuildCommand extends Command<CommandContext> {
|
|||||||
const locator = structUtils.parseLocator(this.locator, true);
|
const locator = structUtils.parseLocator(this.locator, true);
|
||||||
const pkg = project.storedPackages.get(locator.locatorHash);
|
const pkg = project.storedPackages.get(locator.locatorHash);
|
||||||
if (!pkg) {
|
if (!pkg) {
|
||||||
report.reportError(0, `Invalid locator`);
|
report.reportError(0, `Invalid locator: ${this.locator}`);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user