mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
1b6d675feb
The smbconf library defines an enum of error codes that can be returned from the C calls. The error codes were getting stored in the python SMBConfError type but it was not easy to access or obvious what the integer code represented. This change makes it easier to get the returned error code: via a `error_code` attribute on the exception value. It also exposes the integer constants to the module. Simple tests for a few of the more obvious error codes check that this new error handling correctly exposes the error code values. Signed-off-by: John Mulligan <jmulligan@redhat.com> Reviewed-by: Andreas Schneider <asn@samba.org> Reviewed-by: Guenther Deschner <gd@samba.org> Autobuild-User(master): Günther Deschner <gd@samba.org> Autobuild-Date(master): Wed Jun 8 13:13:10 UTC 2022 on sn-devel-184 |
||
---|---|---|
.. | ||
pysmbconf.c | ||
pysmbconf.h | ||
smbconf_private.h | ||
smbconf_txt.c | ||
smbconf_txt.h | ||
smbconf_util.c | ||
smbconf.c | ||
smbconf.h | ||
wscript_build |