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