Skip to content

Commit

Permalink
chore: improve supported platforms messaging
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterSchafer committed Feb 1, 2023
1 parent 67dc164 commit e8be7db
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/lib/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export function testPlatformSupport() {
' The current platform (' +
currentPlatform +
') is not supported by Snyk.\n' +
' You may want to consider using docker to run Snyk.\n' +
' You may want to consider using Docker to run Snyk, for details see: https://docs.snyk.io/snyk-cli/install-the-snyk-cli#snyk-cli-in-a-docker-image\n' +
' If you experience errors please reach out to support@snyk.io.\n' +
'-----------------------------------------------------------------------';

Expand Down
10 changes: 9 additions & 1 deletion ts-binary-wrapper/src/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,15 @@ export function determineBinaryName(
archname = '-arm64';
break;
default:
throw 'Unsupported Architecture (' + arch + ')';
throw '------------------------------- Warning -------------------------------\n' +
' The current platform (' +
platform +
' ' +
arch +
') is not supported by Snyk.\n' +
' You may want to consider using Docker to run Snyk, for details see: https://docs.snyk.io/snyk-cli/install-the-snyk-cli#snyk-cli-in-a-docker-image\n' +
' If you experience errors please reach out to support@snyk.io.\n' +
'-----------------------------------------------------------------------';
}

if (platform == 'linux') {
Expand Down

0 comments on commit e8be7db

Please sign in to comment.