adjust error reporting
Edit directions