Skip to content
Snippets Groups Projects
Commit 9b30ee03 authored by tpylak's avatar tpylak
Browse files

LMS-940 minor yeastx: better error messages

SVN: 11483
parent 555f63b3
No related branches found
No related tags found
No related merge requests found
......@@ -85,7 +85,7 @@ public class ListSamplesByPropertyCriteria implements Serializable
String expDesc =
(experimentIdentifierOrNull == null ? "any" : experimentIdentifierOrNull.toString());
return String.format(
"Samples from the group '%s' with property '%s' set to '%s' in %s experiment",
"Samples from the group '%s' with property '%s' set to '%s' in %s",
groupCode, samplePropertyCode, samplePropertyValue, expDesc);
}
......
......@@ -59,7 +59,7 @@ class LogUtils
Object... arguments)
{
String errorMessage = String.format(errorMessageFormat, arguments);
error("Cannot upload the file " + mapping.getFileName() + ": " + errorMessage);
error(mapping.getFileName() + " - cannot upload the file: " + errorMessage);
}
/**
......@@ -112,14 +112,14 @@ class LogUtils
{
StringBuffer sb = new StringBuffer();
sb.append("Hello,\n");
sb.append("This email has been generated automatically by openBIS.\n");
sb.append("This email has been generated automatically by openBIS.\n\n");
sb.append("The upload of some datasets from '");
sb.append(loggingDir.getName());
sb.append("' directory has failed. There are following errors:\n");
sb.append("' directory has failed.\nThere are following errors:\n");
sb.append(errorMessages);
sb.append("\n");
sb.append("If you are not sure how to correct the errors and you cannot find the answer"
+ " in the documentation, ask for help your openBIS administrator.\n");
+ " in the documentation, ask for help your openBIS administrator.\n\n");
sb.append("Kind regards,\n");
sb.append(" openBIS Team");
return sb.toString();
......
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