cli: review feedback

This commit is contained in:
ahrberg
2021-01-13 08:24:45 +01:00
parent 08e9893d26
commit b519606f3a
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -98,7 +98,7 @@ export default async () => {
try {
target = await findTargetVersion(name);
} catch (error) {
if (error instanceof NotFoundError) {
if (error.name === 'NotFoundError') {
console.log(`Package info not found, ignoring package ${name}`);
return;
}
@@ -19,7 +19,7 @@ import path from 'path';
import * as runObj from '../run';
import { paths } from '../paths';
import { fetchPackageInfo, mapDependencies } from './packages';
import { NotFoundError } from '@backstage/backend-common';
import { NotFoundError } from '../errors';
describe('fetchPackageInfo', () => {
afterEach(() => {