From 96841129e6daaf1759758f8f1124d6260dacf95d Mon Sep 17 00:00:00 2001 From: Daniel James Smith <2670567+djsmith85@users.noreply.github.com> Date: Fri, 3 Oct 2025 23:08:23 +0200 Subject: [PATCH] Use more specific error message when no login to import were found (#16723) Co-authored-by: Daniel James Smith --- .../src/components/chrome/import-chrome.component.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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) {