Skip to content

Commit

Permalink
Gracefully handle non-sequence transactions (#290)
Browse files Browse the repository at this point in the history
We should stop processing a transaction list if the element is not a
sequence. This will propagate an error rather than aborting with an
uncaught exception later.

Fixes #289
  • Loading branch information
bneradt authored Oct 17, 2023
1 parent 1795fd5 commit 9d5a4fd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions local/src/core/YamlParser.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1365,6 +1365,7 @@ YamlParser::load_replay_file(swoc::file::path const &path, ReplayFileHandler &ha
txn_list_node.Mark(),
ssn_node.Mark(),
path);
continue;
}
if (txn_list_node.size() == 0) {
session_errata.note(
Expand Down

0 comments on commit 9d5a4fd

Please sign in to comment.