trace the error