Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrap the error reporting function of ReadStat to provide more #80

Merged
merged 1 commit into from
Aug 16, 2021

Conversation

andreasnoack
Copy link
Contributor

informative error messages.

julia> read_sas7bdat("brokenfile.sas7bdat")
ERROR: Error parsing brokenfile.sas7bdat: Unable to convert string to the requested encoding (invalid byte sequence)
Stacktrace:
 [1] error(s::String)
   @ Base ./error.jl:33
 [2] parse_data_file!(ds::ReadStatDataFrame, parser::Ptr{Nothing}, filename::String, filetype::Val{:sas7bdat})
   @ ReadStat ~/.julia/dev/ReadStat/src/ReadStat.jl:287
 [3] read_data_file(filename::String, filetype::Val{:sas7bdat})
   @ ReadStat ~/.julia/dev/ReadStat/src/ReadStat.jl:261
 [4] read_sas7bdat(filename::String)
   @ ReadStat ~/.julia/dev/ReadStat/src/ReadStat.jl:293
 [5] top-level scope
   @ REPL[5]:1

instead of just ERROR: Error parsing brokenfile.sas7bdat: 17

@davidanthoff davidanthoff merged commit d3c9958 into queryverse:master Aug 16, 2021
@davidanthoff
Copy link
Member

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants