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)
|
.snapshots({ ...r.config, isExistingRepository: true } as RepositoryConfig)
|
||||||
.then(() => true)
|
.then(() => true)
|
||||||
.catch((e) => {
|
.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}`);
|
logger.debug(`Repo existence check for '${r.name}': ${err.message}`);
|
||||||
return false;
|
return false;
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue