Changeset d78a062b173be5f4b8d8969ec29f1dcdd72bc017

Show
Ignore:
Timestamp:
04/20/11 16:53:40 (3 years ago)
Author:
Theo Schlossnagle <jesus@omniti.com>
git-committer:
Theo Schlossnagle <jesus@omniti.com> 1303318420 -0400
git-parent:

[9cd76427905d19227dd3b2974b32ad32070e99b1]

git-author:
Theo Schlossnagle <jesus@omniti.com> 1303318420 -0400
Message:

make the printing of error message safe again

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • src/java/com/omniti/reconnoiter/MQListener.java

    r55a5979 rd78a062  
    7777        } 
    7878        catch (Exception e) { 
    79           System.err.println("MQ connection failed: " + e.getCause().getMessage()); 
     79          Throwable cause = e.getCause(); 
     80          if(cause == null) cause = e; 
     81          System.err.println("MQ connection failed: " + cause.getMessage()); 
    8082        } 
    8183        try { Thread.sleep(1000); } catch (InterruptedException ignore) {}