[%# This Source Code Form is subject to the terms of the Mozilla Public
  # License, v. 2.0. If a copy of the MPL was not distributed with this
  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
  #
  # This Source Code Form is "Incompatible With Secondary Licenses", as
  # defined by the Mozilla Public License, v. 2.0.
  #%]

[% IF error == "invalid_phabricator_uri" %]
  [% title = "Invalid Phabricator URI" %]
  You must provide a valid Phabricator URI.

[% ELSIF error == "invalid_phabricator_api_key" %]
  [% title = "Invalid Phabricator API Key" %]
  You must provide a valid Phabricator API Key.

[% ELSIF error == "invalid_phabricator_projects" %]
  [% title = "Invalid Phabricator Projects" %]
  One or more Phabricator projects selected are invalid.

[% ELSIF error == "invalid_phabricator_revision_id" %]
  [% title = "Invalid Phabricator Revision ID" %]
  You must provide a valid Phabricator revision ID.

[% ELSIF error == "invalid_phabricator_build_target" %]
  [% title = "Invalid Phabricator Build Target" %]
  You must provide a valid Phabricator Build Target PHID.

[% ELSIF error == "phabricator_not_enabled" %]
  [% title = "Phabricator Support Not Enabled" %]
  The Phabricator to Bugzilla library, PhabBugz,
  is not enabled in Bugzilla.

[% ELSIF error == "phabricator_invalid_request_params" %]
  [% title = "Incomplete Information Provided by Phabricator" %]
  The parameters 'user_id' and '[% terms.bug %]_id' must be provided.

[% ELSIF error == "phabricator_unauthorized_user" %]
  [% title = "Unauthorized User" %]
  You do not have permission to use this endpoint.

[% ELSIF error == "phabricator_merge_user_abort" %]
  [% title = "Cannot Merge User" %]
  ERROR: Cannot merge old user [% user.login FILTER html %] since old user
  has a linked account in Phabricator and the user will no longer match the
  account in [% terms.Bugzilla %]. User needs to create new user in Phabricator
  and link it to the newer account in [% terms.Bugzilla %]. Then file a [% terms.bug %]
  for a phabricator admin to fix the accounts in phabricator.
  Instructions: https://mana.mozilla.org/wiki/display/EW/Phabricator+-+Renaming+a+user+account.
  Once this is complete, re-run merge-users.pl using --force switch.

[% END %]
