[ 
https://issues.apache.org/jira/browse/SM-2228?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13891870#comment-13891870
 ] 

Nikolay Martynov edited comment on SM-2228 at 2/5/14 7:05 AM:
--------------------------------------------------------------

Exception handler was copy/pasted from nearby code block but exception reason 
is different. As a result, there is misleading error message. Just use 
operation description from surrounding debug log statement to provide accurate 
error message.


was (Author: nickolay_martinov):
Exception handler was copy/pasted from around code but exception reason is 
different. As a result, there is misleading error message. Just use operation 
description from surrounding debug log statement to provide accurate error 
message.

> Incorrect message in thrown Exception due to copy-past
> ------------------------------------------------------
>
>                 Key: SM-2228
>                 URL: https://issues.apache.org/jira/browse/SM-2228
>             Project: ServiceMix
>          Issue Type: Bug
>          Components: servicemix-core
>    Affects Versions: 3.4.1
>         Environment: Any
>            Reporter: Arseniy Tashoyan
>            Priority: Trivial
>              Labels: easyfix
>         Attachments: JbiTask.java.patch
>
>   Original Estimate: 24h
>  Remaining Estimate: 24h
>
> Class org.apache.servicemix.jbi.management.task.JbiTask, method execute(), 
> line 348:
> {color:green}
> throw new BuildException("Error accessing ServiceMix administration", e);
> {color}
> This message is incorrect as it doesn't reflect the nature of error. It seems 
> to be copy-pasted from the code above. I believe should be:
> {color:green}
> throw new BuildException("Error executing command", e);
> {color}



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Reply via email to