Skip to content

Commit

Permalink
Improve error message in case input file doesn't exist
Browse files Browse the repository at this point in the history
Attempt to fix #859.
  • Loading branch information
quinnj committed Aug 3, 2021
1 parent 644076d commit 2ed2cf7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/context.jl
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ function Context(source,
# initial argument validation and adjustment
@inbounds begin
!isa(source, IO) && !isa(source, AbstractVector{UInt8}) && !isa(source, Cmd) && !isfile(source) &&
throw(ArgumentError("\"$source\" is not a valid file"))
throw(ArgumentError("\"$source\" is not a valid file or doesn't exist"))
if types !== nothing
if types isa AbstractVector || types isa AbstractDict
any(x->!concrete_or_concreteunion(x), types isa AbstractDict ? values(types) : types) && throw(ArgumentError("Non-concrete types passed in `types` keyword argument, please provide concrete types for columns: $types"))
Expand Down

0 comments on commit 2ed2cf7

Please sign in to comment.