Add more information when an error is detected.