Add important debug info on error