AlgebraicJulia / ACSets.jl

ACSets: Algebraic databases as in-memory data structures
https://algebraicjulia.github.io/ACSets.jl/
MIT License
18 stars 8 forks source link

Better errors when reading serialized acsets/schemas from bad paths #112

Closed slwu89 closed 7 months ago

slwu89 commented 7 months ago

It would be nice if the errors from a bad path were able to tell the user that it's due to a bad path, the current one when its given a bad path is somewhat cryptic.

julia> GlobalSch = read_json_acset_schema("../../global/clean/GlobalSch.json")
ERROR: ArgumentError: invalid JSON at byte position 1 while parsing type Any: InvalidChar
slwu89 commented 7 months ago

Could use https://docs.julialang.org/en/v1/base/file/#Base.Filesystem.ispath