fix: fix github download 2

This commit is contained in:
tdurieux
2021-09-08 10:27:04 +02:00
parent 8c6bc97cde
commit 8b299222ea
2 changed files with 9 additions and 7 deletions

View File

@@ -89,7 +89,7 @@ export default class GitHubDownload extends GitHubBase implements SourceBase {
await storage.extractTar(originalPath, downloadStream);
} catch (error) {
await this.repository.updateStatus("error", "unable_to_download");
throw new AnonymousError("unable_to_download");
throw new AnonymousError("unable_to_download", error);
} finally {
inDownload = false;
clearTimeout(progressTimeout);