|
@@ -80,7 +80,7 @@ class Subcommand(object):
|
80
|
80
|
module = imp.load_module(self.name, fh, modpath,
|
81
|
81
|
(".py", "r", imp.PY_SOURCE))
|
82
|
82
|
except IOError:
|
83
|
|
- raise SardinePluginError(self.name)
|
|
83
|
+ raise SardinePluginError("no such plugin: %s" % self.name)
|
84
|
84
|
self.plugin = module.Plugin(self.plugindata)
|
85
|
85
|
|
86
|
86
|
def _format_output(self, raw):
|
|
@@ -103,7 +103,7 @@ class App:
|
103
|
103
|
try:
|
104
|
104
|
self.subcommand = Subcommand(cmdargs, self.pluginpath)
|
105
|
105
|
except SardinePluginError as e:
|
106
|
|
- self.die("no such plugin: %s" % e)
|
|
106
|
+ self.die(e)
|
107
|
107
|
|
108
|
108
|
def _set_pluginpath(self):
|
109
|
109
|
mypath = os.path.dirname(os.path.realpath(sys.argv[0]))
|