Revision: dfc022d8b9cb
Author: Devin Anderson <
surface...@gmail.com>
Date: Sun Dec 23 11:40:33 2012
Log: When reporting a failure to access the plugin directory, make
sure to specify the plugin directory that couldn't be accessed.
http://code.google.com/p/synthclone/source/detail?r=dfc022d8b9cb
Modified:
/src/synthclone/controller.cpp
=======================================
--- /src/synthclone/controller.cpp Sat Nov 17 01:54:37 2012
+++ /src/synthclone/controller.cpp Sun Dec 23 11:40:33 2012
@@ -36,6 +36,8 @@
#define STRINGIFY(s) #s
#define XSTRINGIFY(s) STRINGIFY(s)
+static const char *PLUGIN_PATH = XSTRINGIFY(SYNTHCLONE_PLUGIN_PATH);
+
Controller::Controller(Application &application, QObject *parent):
QObject(parent),
application(application),
@@ -541,11 +543,12 @@
}
#endif
- pluginDirectory.setPath(XSTRINGIFY(SYNTHCLONE_PLUGIN_PATH));
+ pluginDirectory.setPath(PLUGIN_PATH);
if (pluginDirectory.exists()) {
return pluginDirectory;
}
- throw synthclone::Error("core plugin directory is not accessible");
+ throw synthclone::Error(tr("core plugin directory '%1' is not
accessible").
+ arg(PLUGIN_PATH));
}
MainView &