changeset 499:71d8ce4c3ac0 onclient

Include lineType in error message
author Joeri van Ruth <joeri.van.ruth@monetdbsolutions.com>
date Fri, 13 Aug 2021 13:07:52 +0200 (2021-08-13)
parents 4cfe4991ee63
children 95d1b0a38aed
files src/main/java/org/monetdb/jdbc/MonetConnection.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/main/java/org/monetdb/jdbc/MonetConnection.java
+++ b/src/main/java/org/monetdb/jdbc/MonetConnection.java
@@ -3110,7 +3110,7 @@ public class MonetConnection
 							break;
 						default:	// Yeah... in Java this is correct!
 							// we have something we don't expect/understand, let's make it an error message
-							tmpLine = "!M0M10!protocol violation, unexpected line: " + tmpLine;
+							tmpLine = String.format("!M0M10!protocol violation, unexpected %s line: %s", linetype, tmpLine);
 							// don't break; fall through...
 						case ERROR:
 							// read everything till the prompt (should be