Skip to content
Snippets Groups Projects
Commit df4cc5a1 authored by brinn's avatar brinn
Browse files

Better error reporting.

SVN: 24252
parent 23083fe8
No related branches found
No related tags found
No related merge requests found
......@@ -34,6 +34,7 @@ import org.apache.ftpserver.ftplet.FtpException;
import org.apache.ftpserver.ftplet.FtpFile;
import org.apache.log4j.Logger;
import ch.systemsx.cisd.base.exceptions.CheckedExceptionTunnel;
import ch.systemsx.cisd.common.logging.LogCategory;
import ch.systemsx.cisd.common.logging.LogFactory;
import ch.systemsx.cisd.openbis.generic.shared.IETLLIMSService;
......@@ -146,11 +147,12 @@ public class DSSFileSystemView implements FileSystemView
return pathResolverRegistry.resolve(normalizedPath, context);
} catch (RuntimeException rex)
{
Throwable realThrowable = CheckedExceptionTunnel.unwrapIfNecessary(rex);
String message =
String.format("Error while resolving FTP path '%s' : %s", path,
rex.getMessage());
realThrowable.getMessage());
operationLog.error(message);
throw new FtpException(message, rex);
throw new FtpException(message, realThrowable);
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment