Merge pull request #30345 from dingledorf/patch-2
Fix Error Message in StepInitAnalyzeUrl.tsx
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
---
|
||||
'@backstage/plugin-catalog-import': patch
|
||||
---
|
||||
|
||||
Fixed bug with error message since ResponseError is now thrown from CatalogClient
|
||||
@@ -130,7 +130,7 @@ export const StepInitAnalyzeUrl = (props: StepInitAnalyzeUrlProps) => {
|
||||
}
|
||||
}
|
||||
} catch (e: any) {
|
||||
setError(e?.data?.error?.message ?? e.message);
|
||||
setError(e?.body?.error?.message ?? e.message);
|
||||
setSubmitted(false);
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user