Merge pull request #5727 from TejasQ/tejask/4199

Adjust rendering of backend errors
This commit is contained in:
Fredrik Adelöw
2021-05-19 22:04:51 +02:00
committed by GitHub
2 changed files with 6 additions and 1 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/plugin-catalog-import': patch
---
Make UI errors friendlier when importing existing components
@@ -108,7 +108,7 @@ export const StepInitAnalyzeUrl = ({
}
}
} catch (e) {
setError(e.message);
setError(e.data?.error?.message ?? e.message);
setSubmitted(false);
}
},