Handle unlicensed nexpose instances better

git-svn-id: file:///home/svn/framework3/trunk@11109 4d416f70-5f16-0410-b530-b9f4589650da
This commit is contained in:
HD Moore 2010-11-23 05:03:58 +00:00
parent 23a6874954
commit fc5fcaea57
1 changed files with 2 additions and 0 deletions

View File

@ -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)