Return-Path: Delivered-To: apmail-maven-wagon-dev-archive@www.apache.org Received: (qmail 24588 invoked from network); 21 Sep 2005 07:07:34 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 21 Sep 2005 07:07:34 -0000 Received: (qmail 62679 invoked by uid 500); 21 Sep 2005 07:07:34 -0000 Delivered-To: apmail-maven-wagon-dev-archive@maven.apache.org Received: (qmail 62650 invoked by uid 500); 21 Sep 2005 07:07:33 -0000 Mailing-List: contact wagon-dev-help@maven.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: wagon-dev@maven.apache.org List-Id: "Maven Wagon Developers List" Delivered-To: mailing list wagon-dev@maven.apache.org Received: (qmail 62636 invoked by uid 99); 21 Sep 2005 07:07:33 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 21 Sep 2005 00:07:33 -0700 X-ASF-Spam-Status: No, hits=0.4 required=10.0 tests=DNS_FROM_RFC_ABUSE X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: local policy) Received: from [63.246.20.114] (HELO 63-246-20-114.contegix.com) (63.246.20.114) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 21 Sep 2005 00:07:41 -0700 Received: (qmail 13823 invoked by uid 89); 21 Sep 2005 07:07:11 -0000 Received: from unknown (HELO codehaus01.managed.contegix.com) (127.0.0.1) by smtp.domain.com with SMTP; 21 Sep 2005 07:07:11 -0000 Message-ID: <26707751.1127286431064.JavaMail.haus-jira@codehaus01.managed.contegix.com> Date: Wed, 21 Sep 2005 02:07:11 -0500 (CDT) From: "Juan F. Codagnone (JIRA)" To: wagon-dev@maven.apache.org Subject: [jira] Created: (WAGONSSH-15) verbose exception can improve debugging user problem Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N verbose exception can improve debugging user problem ---------------------------------------------------- Key: WAGONSSH-15 URL: http://jira.codehaus.org/browse/WAGONSSH-15 Project: wagon-ssh Type: Wish Reporter: Juan F. Codagnone Priority: Trivial An example of an actual get exception: Caused by: org.apache.maven.wagon.TransferFailedException: Error occured while downloading from the remote repository:[test-private-repo] -> sftp://localhost/tmp/m2 ... Caused by: No such file at com.jcraft.jsch.ChannelSftp.throwStatusError(ChannelSftp.java:1541) at com.jcraft.jsch.ChannelSftp.stat(ChannelSftp.java:1207) at com.jcraft.jsch.ChannelSftp.get(ChannelSftp.java:587) It doesnt give you much information unless you know to read the whole stacktrace (in this case you can spot that is a metadata problem because it apears DefaultRepositoryMetadataManager.java:2309). I propose something like: Caused by: org.apache.maven.wagon.TransferFailedException: Error occured while downloading `ar/com/test/maven/poms/bare/maven-metadata.xml' from the remote repository:[test-private-repo] -> sftp://localhost/tmp/m2 it can be accomplish with something like: (but you already know that! ;-) --- src/main/java/org/apache/maven/wagon/providers/ssh/ScpWagon.java (revision 290590) +++ src/main/java/org/apache/maven/wagon/providers/ssh/ScpWagon.java (working copy) @@ -565,12 +588,14 @@ } } - String msg = "Error occured while downloading from the remote repository:" + getRepository(); + String msg = "Error occured while downloading `" + resource.getName() + + "' from the remote repository:" + getRepository(); throw new TransferFailedException( msg, e ); } public boolean getIfNewer( String resourceName, File destination, long timestamp ) -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: wagon-dev-unsubscribe@maven.apache.org For additional commands, e-mail: wagon-dev-help@maven.apache.org