Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't raise in sys_command_win32 #342

Merged
merged 3 commits into from
Jun 24, 2024
Merged

Don't raise in sys_command_win32 #342

merged 3 commits into from
Jun 24, 2024

Conversation

hhugo
Copy link
Collaborator

@hhugo hhugo commented Jun 23, 2024

No description provided.

@hhugo
Copy link
Collaborator Author

hhugo commented Jun 23, 2024

following #339

src/my_std.ml Outdated
with (Unix.Unix_error _) as x ->
(* Sys.command doesn't raise an exception, so sys_command_win32 also won't
raise *)
Printexc.to_string x ^ ":" ^ cmd |> prerr_endline;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should probably use Log.eprintf.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@hhugo hhugo requested a review from gasche June 24, 2024 08:15
src/my_std.ml Outdated Show resolved Hide resolved
@hhugo hhugo merged commit 0b07e2e into master Jun 24, 2024
15 checks passed
@hhugo hhugo deleted the dont-raise branch June 24, 2024 10:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants