HomeDevCentral

Throw RuntimeException when Phabricator API call fails.

Description

Throw RuntimeException when Phabricator API call fails.

Summary:
The Phabricator API is called through curl. If the session fails, we
now throw an exception instead to return false in Phabricator::post.

Test Plan:
Call config:show command in unit test context.

An exception should be thrown, as phabricator.acme.tld shouldn't succeed.

Formal tests to come in D241.

Reviewers: dereckson

Subscribers: alken-orin

Differential Revision: http://devcentral.nasqueron.org/D315

Details

Provenance
derecksonAuthored on Mar 2 2016, 17:28
Differential Revision
D315: Throw RuntimeException when Phabricator API call fails.
Parents
rNOTIF854cb807bddf: Don't report CommandNotFoundException
Branches
Unknown
Tags
Unknown