mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

lutoff
16.11.2008 945120ff708dff6a38b2096a26dab348179fc955
Fix for issue #2414 (backup exit status 0 (== OK) despite SEVERE_ERROR reported).

If we encounter an error during the processing, we return 1
1 files modified
4 ■■■ changed files
opends/src/server/org/opends/server/tools/BackUpDB.java 4 ●●● patch | view | raw | blame | history
opends/src/server/org/opends/server/tools/BackUpDB.java
@@ -1096,17 +1096,19 @@
    // Print a final completed message, indicating whether there were any errors
    // in the process.
    int ret = 0;
    if (errorsEncountered)
    {
      Message message = NOTE_BACKUPDB_COMPLETED_WITH_ERRORS.get();
      logError(message);
      ret = 1;
    }
    else
    {
      Message message = NOTE_BACKUPDB_COMPLETED_SUCCESSFULLY.get();
      logError(message);
    }
    return 0;
    return ret;
  }
}