Skip to content

Commit

Permalink
fix: Fix one more Svace defect (#492)
Browse files Browse the repository at this point in the history
* fix: Fix one more Svace defect

Signed-off-by: Oleg Kopysov <o.kopysov@samsung.com>

* fix: Added error messages with more details

Signed-off-by: Oleg Kopysov <o.kopysov@samsung.com>

---------

Signed-off-by: Oleg Kopysov <o.kopysov@samsung.com>
  • Loading branch information
o-kopysov authored Apr 10, 2024
1 parent 53193bf commit 2155207
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,7 @@
<goal>single</goal>
</goals>
<configuration>
<appendAssemblyId>true</appendAssemblyId>
<descriptorRefs>
<descriptorRef>jar-with-dependencies</descriptorRef>
</descriptorRefs>
Expand All @@ -164,7 +165,6 @@
<mainClass>com.lpvs.LicensePreValidationService</mainClass>
</manifest>
</archive>
<appendAssemblyId>false</appendAssemblyId>
</configuration>
</execution>
</executions>
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/lpvs/entity/LPVSFile.java
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ public String convertBytesToLinesNumbers() {

if (matchedLines == null || matchedLines.isEmpty()) {
return "";
} else if (matchedLines != null && !matchedLines.startsWith("BYTES:")) {
} else if (!matchedLines.startsWith("BYTES:")) {
return matchedLines;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,8 @@ public List<LPVSFile> checkLicenses(LPVSQueue webhookConfig) {
// close reader
reader.close();
} catch (IOException | IllegalArgumentException ex) {
log.error(ex.toString());
log.error("Error while processing Webhook ID = " + webhookConfig.getId());
log.error(ex.getMessage());
}
return detectedFiles;
}
Expand Down

0 comments on commit 2155207

Please sign in to comment.