Skip to content

Commit

Permalink
Update error message
Browse files Browse the repository at this point in the history
  • Loading branch information
lialln committed Jan 15, 2021
1 parent 17f2e61 commit d291ca9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/stepfunctions/steps/states.py
Original file line number Diff line number Diff line change
Expand Up @@ -597,7 +597,7 @@ def __init__(self, state_id, **kwargs):
raise ValueError("Only one of 'timeout_seconds' or 'timeout_seconds_path' can be provided.")

if self.heartbeat_seconds is not None and self.heartbeat_seconds_path is not None:
raise ValueError("The Task state can contain at most one of 'heartbeat_seconds' or 'heartbeat_seconds_path'.")
raise ValueError("Only one of 'heartbeat_seconds' or 'heartbeat_seconds_path' can be provided.")

def allowed_fields(self):
return [
Expand Down

0 comments on commit d291ca9

Please sign in to comment.