Improve:
KeyError: 'virAdmConnectSetDaemonTimeout'
to
Exception: Missing symbol file entry for 'virAdmConnectSetDaemonTimeout'
Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
# NB: this is consumed by a regex in 'getAPIFilenames' in hvsupport.pl
if id.type == "function":
+ if name not in self.versions:
+ raise Exception("Missing symbol file entry for '%s'" % name)
ver = self.versions[name]
if ver is None:
raise Exception("Missing version for '%s'" % name)