mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-22 07:03:38 +00:00
v2v: do not hide the error, rather report it
The Invalid_argument exception is there to catch unexpected situation when rpm returns no output. Such situation should be reported rather then hidden. Signed-off-by: Tomáš Golembiovský <tgolembi@redhat.com>
This commit is contained in:
committed by
Pino Toscano
parent
34c7215a2f
commit
56e5cf14e9
@@ -109,8 +109,8 @@ let rec file_owner (g : G.guestfs) inspect path =
|
||||
raise Not_found
|
||||
else
|
||||
raise exn
|
||||
| Invalid_argument msg ->
|
||||
raise Not_found
|
||||
| Invalid_argument "index out of bounds" ->
|
||||
error (f_"internal error: file_owner: rpm command returned no output")
|
||||
)
|
||||
|
||||
| format ->
|
||||
|
||||
Reference in New Issue
Block a user