removed debug statement in error-handler