Skip to content

Commit

Permalink
Merge pull request #3593 from mtzguido/fix2
Browse files Browse the repository at this point in the history
Main: fail when no files provided in batch
  • Loading branch information
mtzguido authored Oct 24, 2024
2 parents e8fcdde + 9e8baad commit a6a8ba7
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 34 deletions.
61 changes: 28 additions & 33 deletions ocaml/fstar-lib/generated/FStarC_Main.ml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/fstar/FStarC.Main.fst
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ let go_normal () =
end

(* Normal, batch mode compiler *)
else if List.length filenames >= 1 then begin //normal batch mode
else begin
if Nil? filenames then
Errors.raise_error0 Errors.Error_MissingFileName "No file provided";

Expand Down

0 comments on commit a6a8ba7

Please sign in to comment.