SQL: Clean up catch
Use a mutli-catch because it is a little cleaner.
Original commit: elastic/x-pack-elasticsearch@2d31c153aa6da875f7b999c071735be395e1cd72
@@ -117,9 +117,7 @@ public class JLineTerminal implements CliTerminal {
throw new UserException(ExitCodes.NOPERM, "password required");
}
return password;
- } catch (UserInterruptException ex) {
- throw new UserException(ExitCodes.NOPERM, "password required");
- } catch (EndOfFileException ex) {
+ } catch (UserInterruptException | EndOfFileException ex) {
throw new UserException(ExitCodes.NOPERM, "password required");
}
}
