springernature / webpagetest-mapper

Maps JSON result data from marcelduran/webpagetest-api into human-readable document formats.
GNU General Public License v3.0
96 stars 11 forks source link

Prompt for dump target before failing #6

Open philbooth opened 9 years ago

philbooth commented 9 years ago

Issue #5 made me realise that it would be much nicer if, when failing because of some unhandled error, we prompt for a target file to dump intermediate data in if the -d option has not been specified.

That way, people who hit a daily rate limit would be able to continue with what data they do have rather than failing hard with no end result at all.

philbooth commented 9 years ago

Another case where this would be useful is if the specified dump path is bad.

And also, rather than wait for user input before dumping, perhaps it should dump to /tmp or /var/run then report the dump path?