Skip to content

Commit dba379d

Browse files
authored
Merge pull request #4807 from psafont/private/paus/print-service-failures
xenopsd/xc: Print all information in Service_failed exceptions
2 parents bc71c05 + 6aae998 commit dba379d

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
lines changed

ocaml/idl/datamodel_lifecycle.ml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ let prototyped_of_field = function
1616
| "VTPM", "persistence_backend" ->
1717
Some "22.26.0"
1818
| "host", "https_only" ->
19-
Some "22.26.0-next"
19+
Some "22.27.0"
2020
| "host", "last_software_update" ->
2121
Some "22.20.0"
2222
| _ ->
@@ -38,8 +38,8 @@ let prototyped_of_message = function
3838
| "VTPM", "create" ->
3939
Some "22.26.0"
4040
| "host", "set_https_only" ->
41-
Some "22.26.0-next"
41+
Some "22.27.0"
4242
| "pool", "set_https_only" ->
43-
Some "22.26.0-next"
43+
Some "22.27.0"
4444
| _ ->
4545
None

ocaml/xenopsd/xc/service.ml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,15 @@ let defer f g = Xapi_stdext_pervasives.Pervasiveext.finally g f
2525

2626
exception Service_failed of (string * string)
2727

28+
let () =
29+
Printexc.register_printer (function
30+
| Service_failed (service, reason) ->
31+
Some
32+
(Printf.sprintf "Service_failed(service=%s,reason=%s)" service reason)
33+
| _ ->
34+
None
35+
)
36+
2837
type t = {
2938
name: string
3039
; domid: Xenctrl.domid

0 commit comments

Comments
 (0)