Skip to content

Commit

Permalink
updating the message
Browse files Browse the repository at this point in the history
  • Loading branch information
jragula-zs committed Aug 31, 2023
1 parent 323152b commit 65e6d09
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -21071,9 +21071,9 @@ function getAccessToken(clientId,clientSecretKey){
}).catch((error) => {
if(error.response && error.response.status){
if(error.response.status === 401) {
console.log('Your tenant no longer has an entitlement to Infrastructure as Code Scanning, please contact your account team to acquire a license');
console.log('Your client credentials are invalid');
} else if(error.response.status === 403){
console.log('Your tenant entitlement to Infrastructure as Code Scanning has expired, please contact your account team to renew your license');
console.log('Your client credentials are invalid');
} else {
console.log('Error in authentication');
}
Expand Down
4 changes: 2 additions & 2 deletions src/zscanner/auth.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ function getAccessToken(clientId,clientSecretKey){
}).catch((error) => {
if(error.response && error.response.status){
if(error.response.status === 401) {
console.log('Your tenant no longer has an entitlement to Infrastructure as Code Scanning, please contact your account team to acquire a license');
console.log('Your client credentials are invalid');
} else if(error.response.status === 403){
console.log('Your tenant entitlement to Infrastructure as Code Scanning has expired, please contact your account team to renew your license');
console.log('Your client credentials are invalid');
} else {
console.log('Error in authentication');
}
Expand Down

0 comments on commit 65e6d09

Please sign in to comment.