Skip to content

Commit 38a74e7

Browse files
ssambasuMarkLogic Builder
authored andcommitted
Adding more context to exception message
1 parent f286588 commit 38a74e7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

marklogic-data-hub/src/main/java/com/marklogic/hub/step/impl/WriteStepRunner.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ public RunStepResponse run() {
308308
}
309309
if(fileLocations.get("separator") != null) {
310310
if(! this.inputFileType.equalsIgnoreCase("csv")){
311-
throw new IllegalArgumentException("Invalid argument for file type " + inputFileType );
311+
throw new IllegalArgumentException("Invalid argument for file type " + inputFileType + ". When specifying a separator, the file type must be 'csv'");
312312
}
313313
this.separator = fileLocations.get("separator").trim();
314314
if (separator.equals("\\t")) {

ml-data-hub-plugin/src/main/groovy/com/marklogic/gradle/task/RunFlowTask.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ class RunFlowTask extends HubTask {
187187
}
188188
if(separator != null) {
189189
if(inputFileType != null && !inputFileType.equalsIgnoreCase("csv")) {
190-
throw new IllegalArgumentException("Invalid argument for file type " + inputFileType)
190+
throw new IllegalArgumentException("Invalid argument for file type " + inputFileType + ". When specifying a separator, the file type must be 'csv'")
191191
}
192192
runFlowString.append("\n\t\tSeparator:" + separator.toString())
193193
fileLocations.put("separator", separator)

0 commit comments

Comments
 (0)