Skip to content

Commit

Permalink
Fix: localLine always 0 in message debug information
Browse files Browse the repository at this point in the history
  • Loading branch information
duangsuse committed Apr 7, 2019
1 parent a3e7b4a commit 7307387
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions helper/YamlDump.java
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,9 @@ public static List<Map<String, Object>> getMessageMaps(@NotNull Set<Message<Stri
if (debugs.containsKey(m.getIdentity()))
yamlObject.put("debug", debugs.get(m.getIdentity()));

if (debugs.containsKey(m.getHeader().getIdentity()))
yamlObject.put("header_debug", debugs.get(m.getHeader().getIdentity()));

listMsgs.add(yamlObject);
}
return listMsgs;
Expand Down
4 changes: 2 additions & 2 deletions scanner/Scanner.java
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ public boolean hasNext() {
@Override
public Message<String> next() {
lastMessage = new Message<>();
++messageNo;

String tgName = "";
Date published = null;
Expand Down Expand Up @@ -219,9 +220,8 @@ public Message<String> next() {
break;
}

++messageNo;
localLine = 0;
markSourceObject(lastMessage);
localLine = 0;
return lastMessage;
}
};
Expand Down

0 comments on commit 7307387

Please sign in to comment.