mirror of
https://github.com/inspec/inspec
synced 2024-11-26 06:30:26 +00:00
Exit code changes when license not found and set for inspec
Signed-off-by: Nik08 <nikita.mathur@progress.com>
This commit is contained in:
parent
3c5293d836
commit
f05e08eb6b
1 changed files with 1 additions and 1 deletions
|
@ -53,7 +53,7 @@ module Inspec
|
|||
end
|
||||
rescue ChefLicensing::LicenseKeyFetcher::LicenseKeyNotFetchedError
|
||||
Inspec::Log.error "#{Inspec::Dist::PRODUCT_NAME} cannot execute without valid licenses."
|
||||
Inspec::UI.new.exit(:usage_error)
|
||||
Inspec::UI.new.exit(:license_not_set)
|
||||
rescue ChefLicensing::Error => e
|
||||
Inspec::Log.error e.message
|
||||
Inspec::UI.new.exit(:usage_error)
|
||||
|
|
Loading…
Reference in a new issue