handle common error case