Page MenuHomePhabricator

Unclear exception when patching nonexistant revision
Closed, DuplicatePublic

Description

This has confused at least two engineers internally:

> arc patch --nobranch --skip-dependencies D9999999
[2015-09-02 05:20:04] ERROR 2: Invalid argument supplied for foreach() at [/home/josh/workspace/github.com/joshuaspence/dotfiles/modules/phabricator/arcanist/src/workflow/ArcanistWorkflow.php:1167]
arcanist(), flarc(), phutil()
  #0 ArcanistWorkflow::loadBundleFromConduit(ConduitClient, array) called at [<arcanist>/src/workflow/ArcanistWorkflow.php:1156]
  #1 ArcanistWorkflow::loadRevisionBundleFromConduit(ConduitClient, string) called at [<arcanist>/src/workflow/ArcanistPatchWorkflow.php:384]
  #2 ArcanistPatchWorkflow::run() called at [<arcanist>/src/workflow/ArcanistPatchWorkflow.php:397]
  #3 ArcanistPatchWorkflow::run() called at [<arcanist>/scripts/arcanist.php:382]
Exception
Argument 1 passed to idx() must be of the type array, boolean given, called in /home/josh/workspace/github.com/joshuaspence/dotfiles/modules/phabricator/arcanist/src/workflow/ArcanistWorkflow.php on line 1174 and defined
(Run with `--trace` for a full exception trace.)

Event Timeline

joshuaspence raised the priority of this task from to Needs Triage.
joshuaspence updated the task description. (Show Details)
joshuaspence added a project: Arcanist.
joshuaspence added a subscriber: joshuaspence.