Skip to content

Commit

Permalink
improve error reporting for workdir setting
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Nüst committed Mar 5, 2015
1 parent 7ce1269 commit 303f91b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ public String setWorkingDirectory(RConnection connection,
if (strategy.equals(CreationStrategy.MANUALBASEDIR) || strategy.equals(CreationStrategy.MANUAL)) {
try {
if (workDirName == null)
throw new ExceptionReport("Error setting working directory with strategy '" + strategy + "': WorkDirName is 'null' is not set!", "Inconsistent property");
throw new ExceptionReport("Error setting working directory with strategy '" + strategy + "': workDirName is 'null'!", "Inconsistent property");

File testFile = new File(workDirName);
if ( !testFile.isAbsolute()) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -379,6 +379,7 @@ public String prepareWorkspace(Map<String, List<IData>> inputData, String proces
RWPSConfigVariables.R_WORK_DIR_NAME,
strategy,
e);
throw e;
}

this.workspace.setWorkingDirectory(this.connection,
Expand Down

0 comments on commit 303f91b

Please sign in to comment.