From 74850d9f07171b72c5188d1678eb1b58f7b2a926 Mon Sep 17 00:00:00 2001 From: rread Date: Thu, 22 Aug 2002 21:53:22 +0000 Subject: [PATCH] - fix insmod error message --- lustre/utils/lconf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lustre/utils/lconf b/lustre/utils/lconf index 6629347..4e11e37 100755 --- a/lustre/utils/lconf +++ b/lustre/utils/lconf @@ -508,11 +508,11 @@ class Module: panic('module not found:', mod) (rc, out) = run('/sbin/insmod', module) if rc: - raise CommandError("insmod failed:", module) + raise CommandError, "insmod failed: %s" %(module) else: (rc, out) = run('/sbin/modprobe', mod) if rc: - raise CommandError("modprobe failed:", module) + raise CommandError, "modprobe failed: %s" %(module) def cleanup_module(self): """Unload the modules in the list in reverse order.""" -- 1.8.3.1