wal: propagate errors
Merge pull request #1661 from jonboulle/wal_errors

wal: propagate errors