Whamcloud - gitweb
- fix insmod error message
authorrread <rread>
Thu, 22 Aug 2002 21:53:22 +0000 (21:53 +0000)
committerrread <rread>
Thu, 22 Aug 2002 21:53:22 +0000 (21:53 +0000)
lustre/utils/lconf

index 6629347..4e11e37 100755 (executable)
@@ -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."""