Added NetworkPlugin::StorageBackendNeeded instead of -2 constant

This commit is contained in:
Jan Kaluza 2012-11-27 10:50:49 +01:00
parent 08a5e487db
commit 110a366bfb
2 changed files with 2 additions and 1 deletions

View file

@ -41,7 +41,7 @@ int main (int argc, char* argv[]) {
if (storagebackend == NULL) {
LOG4CXX_ERROR(logger, "Error creating StorageBackend! " << error);
LOG4CXX_ERROR(logger, "Twitter backend needs storage backend configured to work! " << error);
return -2;
return NetworkPlugin::StorageBackendNeeded;
}
else if (!storagebackend->connect()) {

View file

@ -35,6 +35,7 @@ namespace Transport {
/// development.
class NetworkPlugin {
public:
enum ExitCode { StorageBackendNeeded = -2 };
class PluginConfig {
public: