Pass error to callback when reading file
Fixes #2