Lines Matching defs:error

94 def error(text, cmd=None):
95 """Emit an error message prefixed by the command name """
114 logger.error(ws + pkg_cmd + text_nows)
132 specific error message. Causes program to exit.
136 error(usage_error, cmd=cmd)
140 logger.error(_("Try `pkgrepo --help or -?' for more "
247 error(str(e), cmd=subcommand)
358 error(_("Invalid publisher prefix '{0}'").format(pfx),
388 error(_("specified publisher(s) already exist: {0}").format(
427 error(_("Invalid publisher prefix(es):\n {0}").format(
439 error(_("The following publisher(s) could not be found:\n "
623 error(_("no matching properties found"),
659 error(err_msg, cmd=subcommand)
776 error(_("no matching properties found"),
884 error(_("no matching publishers found"),
1019 logger.error("")
1022 error(apx.PackageMatchErrors(unmatched_fmris=unmatched),
1027 # publisher; only display the error.
1028 logger.error("")
1029 error(apx.PackageMatchErrors(unmatched_fmris=unmatched),
1154 logger.error(_(gettext.ngettext("""\
1171 logger.error("")
1172 logger.error(_("""\
1175 logger.error("")
1177 logger.error(" {0}".format(p))
1202 error(_("no matching publishers found"), cmd=subcommand)
1253 error(_("Invalid publisher prefix '{0}'").format(
1302 error(_("Invalid publisher prefix '{0}'").format(
1499 error(_("Unable to set properties for publisher "
1542 # A map of error detail types to the human-readable description of each
1561 """Format a verify_tuple, of the form (error, path, message, reason)
1562 returning a formatted error message, and an FMRI indicating what
1567 error, path, message, reason = verify_tuple
1573 if error == sr.REPO_VERIFY_BADMANIFEST:
1575 elif error in [sr.REPO_VERIFY_PERM, sr.REPO_VERIFY_MFPERM]:
1577 elif error == sr.REPO_VERIFY_BADHASH:
1579 elif error == sr.REPO_VERIFY_UNKNOWN:
1581 elif error == sr.REPO_VERIFY_BADSIG:
1583 elif error == sr.REPO_VERIFY_DEPENDERROR:
1585 elif error == sr.REPO_VERIFY_WARN_OPENPERMS:
1591 # A list of the details we provide. Some error codes
1596 # the detailed error message can be long, so we'll wrap it. If what we
1611 # not have a file path from the package if the error is a
1621 if error == sr.REPO_VERIFY_WARN_OPENPERMS:
1661 error(_("Invalid publisher prefix '{0}'").format(
1757 error(_("Invalid publisher prefix '{0}'").format(
2209 error(_("Invalid publisher prefix '{0}'").format(
2329 error("\n" + misc.out_of_memory())
2337 error(str(__e))
2340 error(_("The pkgrepo command appears out of sync with the "
2347 error(str(__e))
2350 error("{0} Supported formats: {1}".format(
2354 error(str(__e))
2358 error(traceback_str)
2364 misc.setlocale(locale.LC_ALL, "", error)
2367 misc.set_fd_limits(printer=error)
2370 warnings.simplefilter('error')