Created `errorHandler()` to simplify `this.ready()`