diff --git a/libs/importer/src/components/chrome/import-chrome.component.ts b/libs/importer/src/components/chrome/import-chrome.component.ts index 9e9f985c5a5..bf2a37203e1 100644 --- a/libs/importer/src/components/chrome/import-chrome.component.ts +++ b/libs/importer/src/components/chrome/import-chrome.component.ts @@ -114,7 +114,11 @@ export class ImportChromeComponent implements OnInit, OnDestroy { this.formGroup.controls.profile.value, ); if (logins.length === 0) { - throw "nothing to import"; + return { + errors: { + message: this.i18nService.t("importNothingError"), + }, + }; } const chromeLogins: ChromeLogin[] = []; for (const l of logins) {