Skip to content

Commit 9a8bb9f

Browse files
#152 Improved error message
Improved error message, asking users to file a bug.
1 parent 08f67c1 commit 9a8bb9f

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

cost-benefit-calculator/src/main/java/org/hjug/cbc/CostBenefitCalculator.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,12 @@ public <T extends Disharmony> List<ScmLogInfo> getRankedChangeProneness(List<T>
183183
}
184184
} catch (NullPointerException e) {
185185
// Should not be reached
186-
log.error("Error looking up class SCM info. Class: {}, Path: {}", className, path, e);
186+
log.error(
187+
"Error looking up class SCM info. If this error is encountered, "
188+
+ "please log a bug on the RefactorFirst project and describe if the class is a nested class, lambda, etc. \nClass: {}, Path: {}",
189+
className,
190+
path,
191+
e);
187192
}
188193

189194
Optional<ScmLogInfo> scmLogInfoOptional = Optional.ofNullable(scmLogInfo);

0 commit comments

Comments
 (0)