Correct range in error message

Thanks to selectnone for the bug report!
Fix bug in capture_continuous demo