mirror of
https://github.com/ipxe/ipxe
synced 2025-12-14 16:01:38 +03:00
[Contribs] Add simple IRC bot for looking up error codes.
This commit is contained in:
committed by
Michael Brown
parent
fbf9295cbb
commit
f43a7e349a
@@ -40,7 +40,7 @@ def lookup_errno_component(defines, component):
|
||||
else:
|
||||
return '0x%x' % component
|
||||
|
||||
class Errno(object):
|
||||
class Errcode(object):
|
||||
def __init__(self, errno):
|
||||
self.pxenv_status = to_pxenv_status(errno)
|
||||
self.uniq = to_uniq(errno)
|
||||
@@ -74,5 +74,5 @@ if __name__ == '__main__':
|
||||
except ValueError:
|
||||
usage()
|
||||
|
||||
print Errno(errno)
|
||||
print Errcode(errno)
|
||||
sys.exit(0)
|
||||
|
||||
Reference in New Issue
Block a user