Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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.
quinnj committed Aug 3, 2021

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
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
@@ -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"))

0 comments on commit 2ed2cf7

Please sign in to comment.