Skip to content
Permalink
Browse files

i32 Snippet path in error message

  • Loading branch information
Pingvin235 committed Nov 25, 2019
1 parent cb350ff commit ee5bf74400767b1d09a0d36edb71055e9712eca4
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/main/java/org/pzdcdoc/Snippet.java
@@ -86,11 +86,11 @@ public Object process(StructuralNode parent, Reader reader, Map<String, Object>
String line = lines.get(lineNum - 1);

if (from != null && lineNum == lineFrom && !line.trim().startsWith(from)) {
log.error("Snippet doesn't start from: '{}', line: {}", from, line.trim());
log.error("Snippet '{}' doesn't start from: '{}', line: {}", path, from, line.trim());
generator.error();
}
if (to != null && lineNum == lineTo && !line.trim().endsWith(to)) {
log.error("Snippet doesn't end on: '{}', line: {}", to, line.trim());
log.error("Snippet '{}' doesn't end on: '{}', line: {}", path, to, line.trim());
generator.error();
}

0 comments on commit ee5bf74

Please sign in to comment.
You can’t perform that action at this time.