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

jvergara
04.35.2008 210e4c6e2b7e519e1dc6f24d1ec14b575fb3a965
Fix for issue 3449 (upgrade --revertMostRecent should not print its usage)
1 files modified
15 ■■■■ changed files
opends/src/quicksetup/org/opends/quicksetup/upgrader/Reverter.java 15 ●●●● patch | view | raw | blame | history
opends/src/quicksetup/org/opends/quicksetup/upgrader/Reverter.java
@@ -100,7 +100,8 @@
  /**
   * {@inheritDoc}
   */
  public UserData createUserData(Launcher launcher) throws UserDataException {
  public UserData createUserData(Launcher launcher)
  throws UserDataException, ApplicationException {
    ReverterUserData ud = null;
    if (launcher instanceof UpgradeLauncher) {
@@ -280,16 +281,16 @@
            }
            if (!found)
            {
              throw new UserDataException(null,
                  INFO_REVERT_ERROR_INVALID_HISTORY_DIR.get());
              throw new ApplicationException(ReturnCode.APPLICATION_ERROR,
                  INFO_REVERT_ERROR_INVALID_HISTORY_DIR.get(), null);
            }
          } else {
            throw new UserDataException(null,
                    INFO_REVERT_ERROR_EMPTY_HISTORY_DIR.get());
            throw new ApplicationException(ReturnCode.APPLICATION_ERROR,
                    INFO_REVERT_ERROR_EMPTY_HISTORY_DIR.get(), null);
          }
        } else {
          throw new UserDataException(null,
                  INFO_REVERT_ERROR_NO_HISTORY_DIR.get());
          throw new ApplicationException(ReturnCode.APPLICATION_ERROR,
                  INFO_REVERT_ERROR_NO_HISTORY_DIR.get(), null);
        }
      }
      ud.setQuiet(rl.isQuiet());