enso-org / dataframes

A library for working with tabular data in Luna.
https://luna-lang.org
MIT License
6 stars 5 forks source link

Better error message on failed Table.read #159

Closed mwu-tow closed 5 years ago

mwu-tow commented 5 years ago

Pull Request Description

It has been reported on Discord that our current error message on Table.read not being able top open/read file is not helpful. Reason is two-fold: 1) the error pretty printing call was missing an argument, so we got error-formetting-error instead of actual error; 2) the actual error wouldn't be helpful anyway -- we ignored the actual error with reading file (that can be caused by wrong permission settings or wrong path), because we expect failure possibility when trying to match proper parser for given file.

Now not being able to read file is a special class of errors that stop the parser-matching routine and allow to give proper diagnostics to the user.

Important Notes

Checklist

Please include the following checklist in your PR: