Skip to content

Commit 5779f14

Browse files
committed
improve log message for kmod_init failures
Signed-off-by: Zen <[email protected]>
1 parent 05c3662 commit 5779f14

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ugrd/kmod/kmod.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
__author__ = 'desultory'
2-
__version__ = '2.12.1'
2+
__version__ = '2.12.2'
33

44
from pathlib import Path
55
from subprocess import run
@@ -312,7 +312,7 @@ def process_ignored_module(self, module: str) -> None:
312312
if module in self['_kmod_modinfo'] and self['_kmod_modinfo'][module]['filename'] == '(builtin)':
313313
self.logger.debug("Removing built-in module from kmod_init: %s" % module)
314314
else:
315-
raise ValueError("Cannot ignore external module in kmod_init: %s" % module)
315+
raise ValueError("Required module cannot be imported and is not builtin: %s" % module)
316316
else:
317317
self.logger.debug("Removing ignored kernel module from %s: %s" % (key, module))
318318
self[key].remove(module)

0 commit comments

Comments
 (0)