felix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gno...@apache.org
Subject svn commit: r1735998 - /felix/trunk/gogo/jline/src/main/java/org/apache/felix/gogo/jline/Shell.java
Date Mon, 21 Mar 2016 16:53:27 GMT
Author: gnodet
Date: Mon Mar 21 16:53:27 2016
New Revision: 1735998

URL: http://svn.apache.org/viewvc?rev=1735998&view=rev
Log:
Do not print the error again, as it’s now printed by the pipe to its error stream

Modified:
    felix/trunk/gogo/jline/src/main/java/org/apache/felix/gogo/jline/Shell.java

Modified: felix/trunk/gogo/jline/src/main/java/org/apache/felix/gogo/jline/Shell.java
URL: http://svn.apache.org/viewvc/felix/trunk/gogo/jline/src/main/java/org/apache/felix/gogo/jline/Shell.java?rev=1735998&r1=1735997&r2=1735998&view=diff
==============================================================================
--- felix/trunk/gogo/jline/src/main/java/org/apache/felix/gogo/jline/Shell.java (original)
+++ felix/trunk/gogo/jline/src/main/java/org/apache/felix/gogo/jline/Shell.java Mon Mar 21
16:53:27 2016
@@ -301,13 +301,6 @@ public class Shell {
                             }
                         } catch (Exception e) {
                             session.put(Shell.VAR_EXCEPTION, e);
-                            Object loc = session.get(Shell.VAR_LOCATION);
-
-                            if (null == loc || !loc.toString().contains(":")) {
-                                loc = "gogo";
-                            }
-                            System.out.println(loc + ": " + e.getClass().getSimpleName()
+ ": "
-                                    + e.getMessage());
                         }
 
                     } catch (UserInterruptException e) {



Mime
View raw message