File tree Expand file tree Collapse file tree 1 file changed +4
-12
lines changed
Expand file tree Collapse file tree 1 file changed +4
-12
lines changed Original file line number Diff line number Diff line change @@ -42,18 +42,10 @@ let backend_error name args =
4242 Exception. rpc_of_exnty exnty
4343
4444let backend_backtrace_error name args error =
45- match List. zip error.files error.lines with
46- | None -> backend_error " SCRIPT_FAILED" [ " malformed backtrace in error output" ]
47- | Some pairs ->
48- let backtrace =
49- pairs
50- |> List. map ~f: (fun (filename , line ) -> { B.Interop. filename; line })
51- |> B.Interop. to_backtrace
52- |> B. sexp_of_t
53- |> Sexplib.Sexp. to_string in
54- let open Storage_interface in
55- let exnty = Exception. Backend_error_with_backtrace (name, backtrace :: args) in
56- Exception. rpc_of_exnty exnty
45+ let error = rpc_of_error error |> Jsonrpc. to_string in
46+ let open Storage_interface in
47+ let exnty = Exception. Backend_error_with_backtrace (name, error :: args) in
48+ Exception. rpc_of_exnty exnty
5749
5850let missing_uri () =
5951 backend_error " MISSING_URI" [ " Please include a URI in the device-config" ]
You can’t perform that action at this time.
0 commit comments