Skip to content

Commit

Permalink
fix(fetch-engine): change binary not available from error to warning
Browse files Browse the repository at this point in the history
Related to #2266
  • Loading branch information
Jolg42 committed Apr 22, 2020
1 parent b2739fb commit a75608d
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions src/packages/fetch-engine/src/download.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,17 @@ export async function download(options: DownloadOptions): Promise<BinaryPaths> {
const os = await getos()

if (os.distro === 'musl') {
throw new Error('Precompiled binaries are not available for Alpine.')
console.error(
`${chalk.yellow(
'Warning',
)} Precompiled binaries are not available for Alpine.`,
)
} else if (os.distro === 'arm') {
throw new Error('Precompiled binaries are not available for ARM.')
console.error(
`${chalk.yellow(
'Warning',
)} Precompiled binaries are not available for ARM.`,
)
}

// no need to do anything, if there are no binaries
Expand Down

0 comments on commit a75608d

Please sign in to comment.