Skip to content

Commit

Permalink
Update token verification failure message for installer scripts (#2991)
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffreyc-splunk committed Apr 19, 2023
1 parent 1a84325 commit d4d2663
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion internal/buildscripts/packaging/installer/install.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ function verify_access_token([string]$access_token="", [string]$ingest_url=$INGE
} catch {
$err = $_.Exception.Message
$message = "
An error occurred while validating the access token
Your access token could not be verified. This may be due to a network connectivity issue or an invalid access token.
$err
"
throw "$message"
Expand Down
2 changes: 1 addition & 1 deletion internal/buildscripts/packaging/installer/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1052,7 +1052,7 @@ parse_args_and_install() {
fi

if [ "${VERIFY_ACCESS_TOKEN:-true}" = "true" ] && ! verify_access_token "$access_token" "$ingest_url" "$insecure"; then
echo "Your access token could not be verified. This may be due to a network connectivity issue." >&2
echo "Your access token could not be verified. This may be due to a network connectivity issue or an invalid access token." >&2
exit 1
fi

Expand Down

0 comments on commit d4d2663

Please sign in to comment.