mirror of
https://we.phorge.it/source/arcanist.git
synced 2024-11-09 16:32:39 +01:00
Print out the locations of libphutil and arcanist when arc is run with --trace
Summary: We currently print //additional// libraries, but not the core libraries, which makes diagnosing include problems more difficult than necessary. Test Plan: ran `arc derp --trace`, got libphutil/arcanist locations Reviewers: btrahan Reviewed By: btrahan CC: aran Differential Revision: https://secure.phabricator.com/D2929
This commit is contained in:
parent
f9415e37d0
commit
61da381c30
1 changed files with 8 additions and 0 deletions
|
@ -62,9 +62,17 @@ $argv = $args->getUnconsumedArgumentVector();
|
|||
$args = array_values($argv);
|
||||
|
||||
$working_directory = getcwd();
|
||||
$console = PhutilConsole::getConsole();
|
||||
|
||||
try {
|
||||
|
||||
if ($config_trace_mode) {
|
||||
$phutil_location = phutil_get_library_root('phutil');
|
||||
$arcanist_location = phutil_get_library_root('arcanist');
|
||||
$console->writeErr("libphutil loaded from '{$phutil_location}'.\n");
|
||||
$console->writeErr("arcanist loaded from '{$arcanist_location}'.\n");
|
||||
}
|
||||
|
||||
if (!$args) {
|
||||
throw new ArcanistUsageException("No command provided. Try 'arc help'.");
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue