diff options
Diffstat (limited to 'editors/code')
-rw-r--r-- | editors/code/src/installation/fetch_artifact_release_info.ts | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/editors/code/src/installation/fetch_artifact_release_info.ts b/editors/code/src/installation/fetch_artifact_release_info.ts index 5e201afb0..b1b5a3485 100644 --- a/editors/code/src/installation/fetch_artifact_release_info.ts +++ b/editors/code/src/installation/fetch_artifact_release_info.ts | |||
@@ -51,9 +51,11 @@ export async function fetchArtifactReleaseInfo( | |||
51 | 51 | ||
52 | const artifact = release.assets.find(artifact => artifact.name === artifactFileName); | 52 | const artifact = release.assets.find(artifact => artifact.name === artifactFileName); |
53 | 53 | ||
54 | if (!artifact) throw new Error( | 54 | if (!artifact) { |
55 | `Artifact ${artifactFileName} was not found in ${release.name} release!` | 55 | throw new Error( |
56 | ); | 56 | `Artifact ${artifactFileName} was not found in ${release.name} release!` |
57 | ); | ||
58 | } | ||
57 | 59 | ||
58 | return { | 60 | return { |
59 | releaseName: release.name, | 61 | releaseName: release.name, |