Return-Path: X-Original-To: apmail-hadoop-common-dev-archive@www.apache.org Delivered-To: apmail-hadoop-common-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 4C025DB34 for ; Tue, 14 Aug 2012 00:39:41 +0000 (UTC) Received: (qmail 1144 invoked by uid 500); 14 Aug 2012 00:39:38 -0000 Delivered-To: apmail-hadoop-common-dev-archive@hadoop.apache.org Received: (qmail 1021 invoked by uid 500); 14 Aug 2012 00:39:38 -0000 Mailing-List: contact common-dev-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: common-dev@hadoop.apache.org Delivered-To: mailing list common-dev@hadoop.apache.org Received: (qmail 653 invoked by uid 99); 14 Aug 2012 00:39:38 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 14 Aug 2012 00:39:38 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 1CC082C5AD7 for ; Tue, 14 Aug 2012 00:39:38 +0000 (UTC) Date: Tue, 14 Aug 2012 11:39:38 +1100 (NCT) From: "Steve Loughran (JIRA)" To: common-dev@hadoop.apache.org Message-ID: <1607143719.5402.1344904778118.JavaMail.jiratomcat@arcas> Subject: [jira] [Created] (HADOOP-8696) Trash.moveToTrash should be more helpful on errors MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Steve Loughran created HADOOP-8696: -------------------------------------- Summary: Trash.moveToTrash should be more helpful on errors Key: HADOOP-8696 URL: https://issues.apache.org/jira/browse/HADOOP-8696 Project: Hadoop Common Issue Type: Improvement Components: fs Affects Versions: 1.0.3 Reporter: Steve Loughran Priority: Minor When {{Trash.moveToTrash()}} catches an exception, it wraps it with an IOException: {{new IOException("Failed to move to trash: "+path).initCause(cause);}} -but this doesn't include the exception name in the end-user string. As a result, people see the "Failed to move to trash" exception, but nobody knows what went wrong. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira