Lines Matching full:error

4 This script will parse error log yaml file(s) and generate
5 a header file which will then be used by the error logging client and
6 server to collect and validate the error information generated by the
27 for error in i_errors:
28 if i_parents[error] is not None:
33 # Order the error codes list such that an error is never placed
35 # definitions precede child error definitions.
37 for error in i_errors:
38 if error in errors:
41 if (not i_parents[error]) or (i_parents[error] in errors):
42 # parent present, or has no parent, either way this error
44 errors.append(error)
53 for error in i_errors:
54 if i_parents[error] and (i_parents[error] not in i_errors):
56 error
58 + i_parents[error]
67 # Ex: file xyz/openbmc_project/Error/Callout/Device.errors.yaml
68 # will have namespce xyz/openbmc_project/Error/Callout/Device
121 i_yaml_dir directory containing base error yaml files
122 i_test_dir directory containing test error yaml files
124 i_template_dir directory containing error mako templates
125 i_elog_mako error mako template to render
129 errors = list() # Main error codes
130 error_msg = dict() # Error msg that corresponds to error code
131 error_lvl = dict() # Error code log level (debug, info, error, ...)
147 # Verify the error yaml file
172 print("Error - failed to validate error inheritance")
198 Parse the error and metadata yaml files in order to pull out
199 error metadata.
204 i_elog_yaml error yaml file
207 o_elog_data error metadata
220 # for all the errors in error yaml file
221 for error in ifile:
222 if "name" not in error:
224 "Error - Did not find name in entry %s in file %s "
225 % (str(error), i_elog_yaml)
228 fullname = i_namespace.replace("/", ".") + "." + error["name"]
231 if "description" in error:
232 error_msg[fullname] = error["description"].strip()
246 if meta_entry["name"] == error["name"]:
255 # Get 0th inherited error (current support - single inheritance)
260 # so that child errors could inherits such error without meta
277 # print "ERROR: " + errors[i]