added getErrorBlock