def _check_errors(errors):
    errors = errors[(errors.find('spc:') + 4):].strip()
    if (errors and ('ERROR' in errors)):
        raise X13Error(errors)
    elif (errors and ('WARNING' in errors)):
        warn(errors, X13Warning)
def _check_errors(errors):
    errors = errors[(errors.find('spc:') + 4):].strip()
    if (errors and ('ERROR' in errors)):
        raise X13Error(errors)
    elif (errors and ('WARNING' in errors)):
        warn(errors, X13Warning)