Skip to content

Commit

Permalink
Error message improved
Browse files Browse the repository at this point in the history
  • Loading branch information
Jan Lolling (Klöckner committed Feb 2, 2023
1 parent 96f51fd commit c30ee5c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 5 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@
<groupId>com.sap.jco</groupId>
<artifactId>sapjco</artifactId>
<version>3.0.21</version>
<scope>system</scope>
<!-- eclipse complains here a missing absolute path, but works nevertheless -->
<!-- set the path in your maven settings -->
<systemPath>${sapjco3Path}</systemPath>
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
Expand Down Expand Up @@ -53,7 +57,7 @@
<plugin>
<groupId>de.cimt.talendcomp</groupId>
<artifactId>cimt-talendcomp-maven-plugin</artifactId>
<version>3.2</version>
<version>3.3</version>
<configuration>
<!-- set the path in your maven settings -->
<studioUserComponentFolder>${custom_component_folder}</studioUserComponentFolder>
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/de/jlo/talendcomp/sap/impl/TableInputImpl.java
Original file line number Diff line number Diff line change
Expand Up @@ -120,12 +120,12 @@ public void execute() throws Exception {
tableInputOptions.firstRow();
for (String part : filterPartList) {
if (part.length() > 72) {
throw new Exception("The filter expression: <" + filter + "> contains a part which is larger than 72 chars. Affected part: <"+ part + ">. Please split the filter with: <" + filterPartSeparator + "> into parts smaller than 72 chars");
throw new Exception("The filter expression: <" + filter + "> contains a part with a length of " + part.length() + " which is larger than 72 chars.\nAffected part is: <"+ part + ">.\nPlease split the filter with the delimiter: <" + filterPartSeparator + "> into parts smaller than 72 chars");
}
tableInputOptions.setValue("TEXT", part);
tableInputOptions.nextRow();
}
}
}
// add fields
if (listFields.isEmpty()) {
throw new Exception("List of expected fields cannot not be empty");
Expand Down

0 comments on commit c30ee5c

Please sign in to comment.