Updated prompt and some messages.
This commit is contained in:
parent
883c37fcac
commit
9c4eca45ce
@ -47,7 +47,7 @@ public class ConsoleWrapper {
|
|||||||
|
|
||||||
public String readPassword() throws JSCliException {
|
public String readPassword() throws JSCliException {
|
||||||
try {
|
try {
|
||||||
String pw = cons.readLine("password:", new Character('*'));
|
String pw = cons.readLine("Password: ", new Character('*'));
|
||||||
cons.setDefaultPrompt(prompt);
|
cons.setDefaultPrompt(prompt);
|
||||||
return pw;
|
return pw;
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
|
@ -26,7 +26,7 @@ public class Main {
|
|||||||
try {
|
try {
|
||||||
console.println(formatter.format(scriptClient.execute(new FileReader(fileHandle))));
|
console.println(formatter.format(scriptClient.execute(new FileReader(fileHandle))));
|
||||||
} catch (FileNotFoundException e) {
|
} catch (FileNotFoundException e) {
|
||||||
System.err.println("file not found: " + file);
|
System.err.println("File not found: " + file);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -40,7 +40,7 @@ public class Main {
|
|||||||
try {
|
try {
|
||||||
console.println(formatter.format(scriptClient.execute(command)));
|
console.println(formatter.format(scriptClient.execute(command)));
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
console.println("ERR: " + e.getLocalizedMessage() + "\n");
|
console.println("Error: " + e.getLocalizedMessage() + "\n");
|
||||||
}
|
}
|
||||||
command = console.readInput();
|
command = console.readInput();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user