Fix error handling in repository existence check

This commit is contained in:
Jakub Trávník 2025-12-29 20:54:30 +01:00 committed by GitHub
parent e5d8827fd8
commit f908883784
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -206,7 +206,7 @@ async function importRepositories(repositories: unknown[]): Promise<ImportResult
.snapshots({ ...r.config, isExistingRepository: true } as RepositoryConfig)
.then(() => true)
.catch((e) => {
const err = e instanceof Error ? e : new Error(String(e));
const err = e instanceof Error ? e : new Error(String(e));
logger.debug(`Repo existence check for '${r.name}': ${err.message}`);
return false;
});