Added NetworkPlugin::StorageBackendNeeded instead of -2 constant
This commit is contained in:
parent
08a5e487db
commit
110a366bfb
2 changed files with 2 additions and 1 deletions
|
@ -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()) {
|
||||
|
|
|
@ -35,6 +35,7 @@ namespace Transport {
|
|||
/// development.
|
||||
class NetworkPlugin {
|
||||
public:
|
||||
enum ExitCode { StorageBackendNeeded = -2 };
|
||||
|
||||
class PluginConfig {
|
||||
public:
|
||||
|
|
Loading…
Add table
Reference in a new issue