This repository was archived by the owner on Jul 6, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
main/java/org/neo4j/shell/log
test/java/org/neo4j/shell/log Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -110,7 +110,7 @@ public void printOut(@Nonnull final String msg) {
110110 }
111111
112112 /**
113- * Interpret the cause of a Bolt exception and translate it into a sensible error message .
113+ * Formatting for Bolt exceptions .
114114 */
115115 @ Nonnull
116116 String getFormattedMessage (@ Nonnull final Throwable e ) {
Original file line number Diff line number Diff line change @@ -135,13 +135,13 @@ public void testSimple() {
135135
136136 @ Test
137137 public void testNested () {
138- assertEquals ("@|RED nested |@" , logger .getFormattedMessage (new ClientException ("outer" ,
138+ assertEquals ("@|RED outer |@" , logger .getFormattedMessage (new ClientException ("outer" ,
139139 new CommandException ("nested" ))));
140140 }
141141
142142 @ Test
143143 public void testNestedDeep () {
144- assertEquals ("@|RED nested deep |@" , logger .getFormattedMessage (
144+ assertEquals ("@|RED outer |@" , logger .getFormattedMessage (
145145 new ClientException ("outer" ,
146146 new ClientException ("nested" ,
147147 new ClientException ("nested deep" )))));
@@ -150,7 +150,7 @@ public void testNestedDeep() {
150150 @ Test
151151 public void testNullMessage () {
152152 assertEquals ("@|RED ClientException|@" , logger .getFormattedMessage (new ClientException (null )));
153- assertEquals ("@|RED NullPointerException |@" ,
153+ assertEquals ("@|RED outer |@" ,
154154 logger .getFormattedMessage (new ClientException ("outer" , new NullPointerException (null ))));
155155 }
156156
You can’t perform that action at this time.
0 commit comments