Skip to content

Commit 66ad0a9

Browse files
authored
ISSUE-170 (SQLDeveloper) Improve error reporting for ConnectionHelperClient (#171)
o Updated to output all lines of the message from the ConnectionHelper server
1 parent 5e071c9 commit 66ad0a9

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

sqldeveloper/extension/java/ConnectionHelperClient/src/ConnectionHelperClient.java

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,14 @@ public static void main(String[] args) {
5353
new InputStreamReader(svrSocket.getInputStream()));
5454
) {
5555
out.println(connectionInfo);
56-
System.out.println(in.readLine()); // TODO: What kind of responses do we want?
57-
} catch (UnknownHostException e) {
56+
for (;;) {
57+
String line = in.readLine();
58+
if (line == null) {
59+
break;
60+
}
61+
System.out.println(line);
62+
}
63+
} catch (UnknownHostException e) {
5864
System.err.println("Don't know about host " + localhost);
5965
System.exit(1);
6066
} catch (IOException e) {

0 commit comments

Comments
 (0)