file-reader: propagate error event

Fixes #31.