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:
Tomáš Golembiovský
2016-08-05 11:32:27 +02:00
committed by Pino Toscano
parent 34c7215a2f
commit 56e5cf14e9

View File

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