Skip to content

Commit 8155e7a

Browse files
committed
CA-74223 : Friendly error message when VDI Copy fails
1 parent 3d878f4 commit 8155e7a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ocaml/xapi/sparse_dd_wrapper.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ let dd_internal progress_cb base prezeroed infile outfile size =
7272
| Forkhelpers.Success _ -> progress_cb (Finished None)
7373
| Forkhelpers.Failure (log, exn) ->
7474
error "Failure from sparse_dd: %s raising %s" log (Printexc.to_string exn);
75-
raise exn
75+
raise (Api_errors.Server_error (("VDI_COPY_FAILED", [Printexc.to_string exn])));
7676
with e ->
7777
progress_cb (Finished (Some e));
7878
raise e

0 commit comments

Comments
 (0)