Raise an exception when the wpr_archive_info isn't created.
commit29846e0abbd27b05029bb3e937a6bdcbc1f31b0e
authorariblue <ariblue@google.com>
Fri, 17 Oct 2014 02:55:40 +0000 (16 19:55 -0700)
committerCommit bot <commit-bot@chromium.org>
Fri, 17 Oct 2014 02:55:59 +0000 (17 02:55 +0000)
tree82be0747527879d8deb021e42694bbd453c8af3c
parent5455db156d000d30e1b3ae26e5d6aaabf47dee93
Raise an exception when the wpr_archive_info isn't created.

This is to provide a more user friendly error. This:

  AssertionError: Pageset archive_data_file path must be specified.

instead of this:

  AttributeError: 'NoneType' object has no attribute 'AddNewTemporaryRecording'

BUG=

Review URL: https://codereview.chromium.org/660143002

Cr-Commit-Position: refs/heads/master@{#300050}
tools/telemetry/telemetry/page/record_wpr.py