Skip to content

Commit

Permalink
Merge pull request #717 from locustio/time-limit-error
Browse files Browse the repository at this point in the history
fix error message on invalid time format
  • Loading branch information
heyman committed Dec 28, 2017
2 parents ee7ca68 + 4aa4a27 commit 387e7a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion locust/main.py
Expand Up @@ -437,7 +437,7 @@ def main():
try:
options.run_time = parse_timespan(options.run_time)
except ValueError:
logger.error("Valid --time-limit formats are: 20, 20s, 3m, 2h, 1h20m, 3h30m10s, etc.")
logger.error("Valid --run-time formats are: 20, 20s, 3m, 2h, 1h20m, 3h30m10s, etc.")
sys.exit(1)
def spawn_run_time_limit_greenlet():
logger.info("Run time limit set to %s seconds" % options.run_time)
Expand Down

0 comments on commit 387e7a8

Please sign in to comment.