ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From co...@locus.apache.org
Subject cvs commit: jakarta-ant/src/main/org/apache/tools/ant Main.java
Date Sun, 24 Sep 2000 09:00:10 GMT
conor       00/09/24 02:00:09

  Modified:    src/main/org/apache/tools/ant Main.java
  Log:
  Only print messages from exceptions which are non-null
  
  Submitted by:	Patrick Beard <beard@netscape.com>
  
  Revision  Changes    Path
  1.21      +4 -1      jakarta-ant/src/main/org/apache/tools/ant/Main.java
  
  Index: Main.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/src/main/org/apache/tools/ant/Main.java,v
  retrieving revision 1.20
  retrieving revision 1.21
  diff -u -r1.20 -r1.21
  --- Main.java	2000/09/19 09:09:23	1.20
  +++ Main.java	2000/09/24 09:00:07	1.21
  @@ -131,7 +131,10 @@
               System.exit(0);
           }
           catch(Throwable exc) {
  -            System.err.println(exc.getMessage());
  +            String message = exc.getMessage();
  +            if (message != null) {
  +                System.err.println(message);
  +            }
               System.exit(1);
           }
       }
  
  
  

Mime
View raw message