Skip to content
Snippets Groups Projects
Commit 9fd57636 authored by izabel's avatar izabel
Browse files

[LMS-950] send error message

SVN: 11488
parent c6217eab
No related branches found
No related tags found
No related merge requests found
......@@ -696,6 +696,8 @@ public final class TransferredDataSetHandler implements IPathHandler, ISelfTesta
*/
private final DataSetInformation extractDataSetInformation(final File incomingDataSetPath)
{
String errorMessage = "Error when trying to identify data set '"
+ incomingDataSetPath.getAbsolutePath() + "'.";
try
{
final DataSetInformation dataSetInfo =
......@@ -720,11 +722,16 @@ public final class TransferredDataSetHandler implements IPathHandler, ISelfTesta
return dataSetInfo;
} catch (final HighLevelException e)
{
String email = dataSetInformation.tryGetUploadingUserEmail();
if (StringUtils.isBlank(email) == false)
{
mailClient.sendMessage(errorMessage, e.getMessage(), null,
email);
}
throw e;
} catch (final RuntimeException ex)
{
throw new EnvironmentFailureException("Error when trying to identify data set '"
+ incomingDataSetPath.getAbsolutePath() + "'.", ex);
throw new EnvironmentFailureException(errorMessage, ex);
}
}
......
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