Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -108,9 +108,8 @@ def process_internal(self, flowdata):
sequence = flowdata.evidence.get("query.sequence")
if isinstance(sequence, bool) or not isinstance(sequence, int):
raise Exception(
"The JSON Builder needs the sequence number that a Sequence "
"Element produces. A Sequence Element needs to be placed "
"before it in the Pipeline.")
"The JSON Builder needs a sequence number. Place a Sequence "
"Element before the JSON Builder in the Pipeline.")

# Get every property on every FlowElement
# Storing JavaScript properties in an extra section
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,10 @@ def test_no_sequence_number_is_an_error_that_names_the_sequence_element(
flowdata = pipeline.create_flowdata()
with self.assertRaises(Exception) as caught:
flowdata.process()
self.assertIn("Sequence Element", str(caught.exception))
self.assertEqual(
"The JSON Builder needs a sequence number. Place a Sequence "
"Element before the JSON Builder in the Pipeline.",
str(caught.exception))

def test_no_json_is_set_when_the_error_is_suppressed(self):
pipeline = bundler_only(suppress=True)
Expand Down
Loading