Make errmsg private.

This is #83 updated for current master.