Handle unlicensed nexpose instances better
git-svn-id: file:///home/svn/framework3/trunk@11109 4d416f70-5f16-0410-b530-b9f4589650daunstable
parent
23a6874954
commit
fc5fcaea57
|
@ -153,6 +153,8 @@ class APIRequest
|
|||
@error = "received a user interrupt"
|
||||
rescue ::Errno::ECONNRESET,::Errno::ECONNREFUSED,::Errno::ENOTCONN,::Errno::ECONNABORTED
|
||||
@error = "NeXpose service is not available"
|
||||
rescue ::REXML::ParseException
|
||||
@error = "NeXpose has not been properly licensed"
|
||||
end
|
||||
|
||||
if ! (@success or @error)
|
||||
|
|
Loading…
Reference in New Issue