Fix #100 & Fix #101: Set right params for error thrown during reading of files