Skip to content

Commit

Permalink
Update parser.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
moyner committed Jul 2, 2024
1 parent 788a111 commit fd4d494
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/InputParser/parser.jl
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ function parse_grdecl_file(filename;
dir = first(splitdir(filename))
fname = local_path
local_path = joinpath(dir, fname)
isfile(local_path, "Tried parsing $fname, but was not the name of an existing file.")
isfile(local_path) || throw(ArgumentError("Tried parsing $fname, but was not the name of an existing file."))
end
parse_data_file!(outer_data, local_path, data; input_units = input_units, kwarg...)
end
Expand Down

0 comments on commit fd4d494

Please sign in to comment.