5
0
mirror of https://github.com/apache/sqoop.git synced 2025-05-17 09:20:43 +08:00

SQOOP-2693: Sqoop2: Command line should let user retry Name it's invalid

(Dian Fu via Jarek Jarcec Cecho)
This commit is contained in:
Jarek Jarcec Cecho 2015-11-17 08:20:51 -08:00
parent 8e08a7bdc7
commit e24263a2e2

View File

@ -1118,9 +1118,10 @@ static String getName(ConsoleReader reader, String name) throws IOException {
fillInputStringWithBundle(nameInput, reader, getResourceBundle()); fillInputStringWithBundle(nameInput, reader, getResourceBundle());
if (StringUtils.isEmpty(nameInput.getValue())) { if (StringUtils.isEmpty(nameInput.getValue())) {
errorMessage(nameInput, "Job name or link name cannot be null"); errorMessage(nameInput, "Job name or link name cannot be null");
continue; } else {
break;
} }
} while (false); } while (true);
return nameInput.getValue(); return nameInput.getValue();
} }