SQL: Clean up catch
Use a mutli-catch because it is a little cleaner. Original commit: elastic/x-pack-elasticsearch@8555e82bca
This commit is contained in:
parent
47a2f63d5e
commit
5c3b69fe57
|
@ -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");
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue