direction error handler