]> khamidou — GitHub mirrors - arcanist.git/commit
Improve syntax error output from "arc liberate"
authorepriestley <git@epriestley.com>
Wed, 6 Jun 2012 17:53:02 +0000 (10:53 -0700)
committerepriestley <git@epriestley.com>
Wed, 6 Jun 2012 17:53:02 +0000 (10:53 -0700)
commit6f6fde84cc530c2b51f095d9636b9e15301519a1
tree1577d3fb379e7ea53b613645a2965b40cbe4746d
parent52f8f49aef1cd1ee1d0aba69c7548cf52932568e
Improve syntax error output from "arc liberate"

Summary:
Currently, when a file has a syntax error and you run "arc liberate", the symbol analyzer will fail and throw, which will make the mapper fail and throw, which will make arc fail and throw. This gives you a stack trace pile three scripts deep which is a giant pain to analyze visually.

Instead, raise a clear message.

Test Plan: Ran "arc liberate" with a syntax error. Got useful diagnostic output instead of 30 pages of stack mess.

Reviewers: vrana, btrahan

Reviewed By: vrana

CC: aran
Differential Revision: https://secure.phabricator.com/D2659
scripts/phutil_rebuild_map.php
scripts/phutil_symbols.php