Fix #1259 by not silently ignoring file read errors