Lines Matching refs:errors

119             "errors": {"type": "array",
302 "errors": {"type": "array",
447 environment, collect the values. Some transport errors are
469 errors = []
475 # For version errors, include the pattern so
477 errors.append("Illegal FMRI '{0}': {1}".format(pat,
482 errors.append(err)
483 if errors:
484 _error_json("\n".join(str(e) for e in errors),
486 return len(errors) == 0, res
523 def __prepare_json(status, op=None, schema=None, data=None, errors=None):
528 if errors:
529 if not isinstance(errors, list):
530 ret_json["errors"] = [errors]
532 ret_json["errors"] = errors
541 "errors": [{"reason": str(e)}]}
548 def _collect_catalog_failures(cre, ignore_perms_failure=False, errors=None):
578 if errors != None:
583 errors.append(error)
588 # If any errors other than a permissions exception are
599 if errors != None:
602 errors.append(error)
605 if errors != None:
608 errors.append(error)
640 return __prepare_json(EXIT_OOPS, errors=errors_json)
659 ignore_perms_failure=True, errors=errors_json)
665 errors=errors_json)
742 errors=errors_json)
746 errors=errors_json)
752 errors=errors_json)
754 _collect_catalog_failures(e, errors=errors_json)
756 errors=errors_json)
764 errors=errors_json)
822 errors=errors_json)
824 return __prepare_json(EXIT_OOPS, data=data, errors=errors_json)
930 return __prepare_json(EXIT_OOPS, errors=errors_json)
940 return __prepare_json(EXIT_LICENSE, errors=errors_json)
945 return __prepare_json(EXIT_OOPS, errors=errors_json)
948 return __prepare_json(EXIT_OOPS, errors=errors_json)
951 return __prepare_json(EXIT_OOPS, errors=errors_json)
957 return __prepare_json(EXIT_OOPS, errors=errors_json)
973 rval = __prepare_json(EXIT_OOPS, errors=errors_json)
980 rval = __prepare_json(EXIT_OOPS, errors=errors_json)
985 rval = __prepare_json(e.lix_exitrv, errors=errors_json)
989 rval = __prepare_json(EXIT_NOTLIVE, errors=errors_json)
995 rval = __prepare_json(EXIT_NOTLIVE, errors=errors_json)
1000 rval = __prepare_json(EXIT_OOPS, errors=errors_json)
1006 rval = __prepare_json(EXIT_OOPS, errors=errors_json)
1011 rval = __prepare_json(EXIT_OOPS, errors=errors_json)
1014 rval = __prepare_json(EXIT_OOPS, errors=errors_json)
1017 rval = __prepare_json(EXIT_OOPS, errors=errors_json)
1022 rval = __prepare_json(EXIT_OOPS, errors=errors_json)
1027 rval = __prepare_json(EXIT_OOPS, errors=errors_json)
1077 return __prepare_json(EXIT_OOPS, errors=errors_json)
1082 return __prepare_json(EXIT_OOPS, errors=errors_json)
1087 return __prepare_json(e.lix_exitrv, errors=errors_json)
1095 return __prepare_json(EXIT_OOPS, errors=errors_json)
1097 _collect_catalog_failures(e, errors=errors_json)
1098 return __prepare_json(EXIT_OOPS, errors=errors_json)
1104 return __prepare_json(EXIT_OOPS, errors=errors_json)
1107 return __prepare_json(EXIT_OOPS, errors=errors_json)
1113 return __prepare_json(EXIT_NOTLIVE, errors=errors_json)
1117 return __prepare_json(EXIT_OOPS, errors=errors_json)
1133 return __prepare_json(EXIT_BADOPT, errors=errors_json)
1134 return __prepare_json(EXIT_OOPS, errors=errors_json)
1154 return __prepare_json(EXIT_OOPS, errors=errors_json)
1287 return __prepare_json(EXIT_OOPS, errors=errors_json)
1456 return __prepare_json(EXIT_BADOPT, errors=errors_json, op=op)
1461 return __prepare_json(EXIT_OOPS, errors=errors_json)
1466 return __prepare_json(EXIT_OOPS, errors=errors_json)
1491 return __prepare_json(EXIT_BADOPT, errors=errors_json, op=op)
1496 return __prepare_json(EXIT_OOPS, errors=errors_json)
1501 return __prepare_json(EXIT_OOPS, errors=errors_json)
1527 return __prepare_json(EXIT_OOPS, errors=errors_json)
1532 return __prepare_json(EXIT_OOPS, errors=errors_json)
1569 return __prepare_json(EXIT_BADOPT, errors=errors_json, op=op)
1574 return __prepare_json(EXIT_OOPS, errors=errors_json)
1598 return __prepare_json(EXIT_BADOPT, errors=errors_json, op=op)
1602 return __prepare_json(EXIT_BADOPT, errors=errors_json, op=op)
1628 if "errors" in ret_json:
1629 for err in ret_json["errors"]:
1631 return __prepare_json(ret_json["status"], errors=errors_json)
1652 return __prepare_json(EXIT_OOPS, errors=errors_json)
1654 if ret_json["status"] != EXIT_OK and "errors" in ret_json:
1655 for err in ret_json["errors"]:
1659 errors=errors_json)
1669 return __prepare_json(EXIT_OOPS, errors=errors_json)
1678 return __prepare_json(EXIT_OOPS, errors=errors_json)
1789 for err in ret_json["errors"]:
1817 errors=errors_json)
1818 return __prepare_json(EXIT_OOPS, data=data, errors=errors_json)
1837 return __prepare_json(EXIT_BADOPT, errors=errors_json, op=op)
1839 errors = []
1848 return __prepare_json(EXIT_OOPS, errors=errors_json)
1852 errors.append((name, e))
1859 if errors:
1860 if len(errors) == len(pargs):
1871 for name, err in errors:
1878 return __prepare_json(retcode, errors=errors_json)
1932 errors = c["errors"] = []
1944 # add the errors to a list and continue on.
1945 errors.append(e)
2152 if c["errors"]:
2155 for e in c["errors"]:
2242 return __prepare_json(retcode, data=data, errors=errors_json, op=op)
2255 return __prepare_json(EXIT_BADOPT, errors=errors_json, op=op)
2277 return __prepare_json(EXIT_OOPS, errors=errors_json)
2280 return __prepare_json(EXIT_OOPS, errors=errors_json)
2283 return __prepare_json(EXIT_OOPS, errors=errors_json)
2294 return __prepare_json(EXIT_OOPS, errors=errors_json)
2459 return __prepare_json(err, errors=errors_json, data=data)
2470 return __prepare_json(EXIT_BADOPT, errors=errors_json)
2482 """Fix packaging errors found in the image."""
2503 return __prepare_json(EXIT_OOPS, errors=errors_json)
2508 return __prepare_json(EXIT_OOPS, errors=errors_json)
2513 return __prepare_json(EXIT_OOPS, errors=errors_json)
2515 if _collect_catalog_failures(e, errors=errors_json) == 0:
2516 return __prepare_json(EXIT_OOPS, errors=errors_json)
2517 return __prepare_json(EXIT_PARTIAL, errors=errors_json)
2544 value for errors."""
2554 ignore_perms_failure=True, errors=errors_json)
2555 return __prepare_json(EXIT_OOPS, errors=errors_json)
2568 return __prepare_json(EXIT_OOPS, errors=errors_json)
2573 return __prepare_json(EXIT_OOPS, errors=errors_json)
2579 return __prepare_json(EXIT_OOPS, errors=errors_json)
2587 return __prepare_json(EXIT_OOPS, errors=errors_json)
2616 errors=errors_json)
2753 return __prepare_json(EXIT_BADOPT, errors=errors_json)
2818 return None, __prepare_json(EXIT_OOPS, errors=errors_json)
2823 return None, __prepare_json(EXIT_OOPS, errors=errors_json)
2840 errors=errors_json)
2850 return None, __prepare_json(EXIT_OOPS, errors=errors_json)
2864 errors=errors_json)
2868 return None, __prepare_json(EXIT_OOPS, errors=errors_json)
2878 errors=[{"reason": str(e)}])
2888 return None, __prepare_json(EXIT_OOPS, errors=errors_json)
2908 return api_inst, __prepare_json(EXIT_OOPS, errors=err)
2915 return api_inst, __prepare_json(EXIT_OOPS, errors=err)
2977 return api_inst, __prepare_json(EXIT_BADOPT, errors=err)
2992 # Out of memory errors can be raised as EnvironmentErrors with
3016 errors=errors_json)
3025 # possible further broken pipe (EPIPE) errors.
3030 ret_json = __prepare_json(__e.lix_exitrv, errors=errors_json)
3035 ret_json = __prepare_json(EXIT_OOPS, errors=errors_json)
3040 ret_json = __prepare_json(EXIT_OOPS, errors=errors_json)
3045 ret_json = __prepare_json(EXIT_LOCKED, errors=errors_json)
3056 ret_json = __prepare_json(EXIT_OOPS, errors=errors_json)
3064 ret_json = __prepare_json(EXIT_OOPS, errors=errors_json)
3075 ret_json = __prepare_json(EXIT_OOPS, errors=errors_json)
3085 ret_json = __prepare_json(EXIT_OOPS, errors=errors_json)
3095 ret_json = __prepare_json(EXIT_OOPS, errors=errors_json)
3104 ret_json = __prepare_json(EXIT_OOPS, errors=errors_json)
3113 ret_json = __prepare_json(EXIT_OOPS, errors=errors_json)
3129 if "errors" in ret_json:
3130 ret_json["errors"].extend(errors_json)
3132 ret_json["errors"] = errors_json
3136 ret_json = __prepare_json(EXIT_OOPS, errors=errors_json)
3139 ret_json = __prepare_json(EXIT_OOPS, errors=errors_json)
3142 ret_json = __prepare_json(EXIT_OOPS, errors=errors_json)
3145 ret_json = __prepare_json(EXIT_OOPS, errors=errors_json)
3148 ret_json = __prepare_json(EXIT_OOPS, errors=errors_json)
3156 ret_json = __prepare_json(99, errors=errors_json)
3163 # If any errors occur during reset, we will discard