Fix error handling in repository existence check
This commit is contained in:
parent
e5d8827fd8
commit
f908883784
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue