Mercurial > hg > monetdb-java
comparison src/main/java/org/monetdb/jdbc/MonetConnection.java @ 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 | aed7f32e029a |
children | 95d1b0a38aed |
comparison
equal
deleted
inserted
replaced
498:4cfe4991ee63 | 499:71d8ce4c3ac0 |
---|---|
3108 tmpLine = in.readLine(); | 3108 tmpLine = in.readLine(); |
3109 linetype = in.getLineType(); | 3109 linetype = in.getLineType(); |
3110 break; | 3110 break; |
3111 default: // Yeah... in Java this is correct! | 3111 default: // Yeah... in Java this is correct! |
3112 // we have something we don't expect/understand, let's make it an error message | 3112 // we have something we don't expect/understand, let's make it an error message |
3113 tmpLine = "!M0M10!protocol violation, unexpected line: " + tmpLine; | 3113 tmpLine = String.format("!M0M10!protocol violation, unexpected %s line: %s", linetype, tmpLine); |
3114 // don't break; fall through... | 3114 // don't break; fall through... |
3115 case ERROR: | 3115 case ERROR: |
3116 // read everything till the prompt (should be | 3116 // read everything till the prompt (should be |
3117 // error) we don't know if we ignore some | 3117 // error) we don't know if we ignore some |
3118 // garbage here... but the log should reveal that | 3118 // garbage here... but the log should reveal that |