Print args.gn if gn clean fails to write it

For mysterious reasons "gn clean" sometimes fails to write args.gn,
which is a surprisingly frustrating bit of data loss. This change gets
gn to do the most that it can in this case - print args.gn to the
console.

I tested by forcing a failure to write args.gn and verified that the
printout looked good and was usable.

Bug: 627656
Change-Id: Ifbd6ddd8c851da13e482e8a0f617b218e29ede08
Reviewed-on: https://chromium-review.googlesource.com/862697
Reviewed-by: Dirk Pranke <dpranke@chromium.org>
Commit-Queue: Bruce Dawson <brucedawson@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#528842}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: b7c2c4ec1b901041af24793d679e3acaec4b750d
1 file changed
tree: 7df96c90c86d024c97e1272660e591538f9db620
  1. tools/