Skip to content

Commit

Permalink
improved wording on error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
kolinger committed Aug 12, 2022
1 parent 303400d commit 0a78cc4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion webapp/backend.py
Expand Up @@ -342,7 +342,7 @@ def retry(self, callback):
condition.append("until %s" % timestamp)

if len(condition):
condition = " and ".join(condition)
condition = " or ".join(condition)
else:
condition = "indefinitely"

Expand Down
6 changes: 5 additions & 1 deletion webapp/templates/setup.html
Expand Up @@ -28,13 +28,17 @@
</div>
</div>
<div class="form-group">
<label class="control-label" for="retry_count">Retry on error (number of times)</label>
<label class="control-label" for="retry_count">Number of retries</label>
<input type="number" class="form-control" id="retry_count" name="retry_count" value="{{ setup["retry_count"] }}" />
<div class="help-block">
How many times to retry operation before giving up. Set to 0 to retry indefinitely.
Default: {{ default_retry_count }} times.
</div>
</div>
<div class="alert alert-info">
Note: Both timeout and number of retries work together.
If one run-outs before the other, the connection is terminated.
</div>
<div class="form-group">
<button type="submit" name="do" class="btn btn-default">
Save
Expand Down

0 comments on commit 0a78cc4

Please sign in to comment.