def _error(ret, err_msg):
    ret['result'] = False
    ret['comment'] = err_msg
    return ret
Common function for setting error information for return dicts
dataset/ETHPy150Open saltstack/salt/salt/modules/file.py/_error