Better error message

This commit is contained in:
Jérémie Courrèges-Anglas 2014-11-20 15:32:02 +01:00
parent d43b948482
commit 4d054189c7

View File

@ -76,7 +76,7 @@ class copy_vm_xcp(backup_generic):
try: try:
storage = session.xenapi.SR.get_by_name_label(storage_name)[0] storage = session.xenapi.SR.get_by_name_label(storage_name)[0]
except IndexError,error: except IndexError,error:
result = (1,"error get VM opaqueref %s"%(error)) result = (1,"error get SR opaqueref %s"%(error))
return result return result