Skip to content

Commit 5f50921

Browse files
authored
Fix verifyLocation for rhdh-local (#1211)
Signed-off-by: Dominika Zemanovicova <dzemanov@redhat.com>
1 parent 1cdf509 commit 5f50921

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@red-hat-developer-hub/backstage-plugin-bulk-import-backend': patch
3+
---
4+
5+
Fixes `/imports` endpoint unable to create `catalog-info.yaml` PR in rhdh-local

workspaces/bulk-import/plugins/bulk-import-backend/src/catalog/catalogHttpClient.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ export class CatalogHttpClient {
250250
} catch (error: any) {
251251
if (
252252
error.message?.includes('NotFoundError') ||
253-
error.cause?.message?.includes('NotFoundError')
253+
error.body?.error?.message?.includes('NotFoundError')
254254
) {
255255
return false;
256256
}

0 commit comments

Comments
 (0)