Skip to content

Commit

Permalink
fix(pkg): do not drop backtrace from user errors (#11457)
Browse files Browse the repository at this point in the history
Signed-off-by: Rudi Grinberg <me@rgrinberg.com>
  • Loading branch information
rgrinberg authored Feb 9, 2025
1 parent 8f0a86c commit b6e62fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dune_pkg/opam_solver.ml
Original file line number Diff line number Diff line change
Expand Up @@ -1760,7 +1760,7 @@ let solve_package_list packages ~context =
| OpamPp.(Bad_format _ | Bad_format_list _ | Bad_version _) as bad_format ->
(* CR-rgrinberg: needs to include locations *)
User_error.raise [ Pp.text (OpamPp.string_of_bad_format bad_format) ]
| User_error.E _ -> reraise exn.exn
| User_error.E _ -> Exn_with_backtrace.reraise exn
| _ ->
Code_error.raise
"Unexpected exception raised while solving dependencies"
Expand Down

0 comments on commit b6e62fe

Please sign in to comment.