Bug #341
OCA exits instead of returning OpenNebula Error
Status: | Closed | Start date: | 09/07/2010 | |
---|---|---|---|---|
Priority: | Normal | Due date: | ||
Assignee: | Javi Fontan | % Done: | 0% | |
Category: | Client API & Library | |||
Target version: | Release 2.0 | |||
Resolution: | fixed | Pull request: | ||
Affected Versions: |
Description
ImageRepository exits on Error,
if OpenNebula.is_error?(result)
puts result.message
exit -1
end
instead It should return a OpenNebula Error, explaining the reason of the error.
if OpenNebula.is_error?(result)
return result
end
Associated revisions
bug #341: bug in api calling exit instead of returning error to the caller
bug #341: raise exceptions instead of exiting in OpenNebula::Client
bug #341: catch exceptions creating OpenNebula::Client
History
#1 Updated by Javi Fontan almost 11 years ago
- Subject changed from ImageRepository exits instead of returning OpenNebula Error to OCA exits instead of returning OpenNebula Error
OpenNebula.rb also calls exit in Client initialization
#2 Updated by Javi Fontan almost 11 years ago
- Status changed from New to 3
- Assignee changed from Daniel Molina to Javi Fontan
- Resolution set to fixed
#3 Updated by Ruben S. Montero almost 10 years ago
- Status changed from 3 to Closed