Page MenuHomeDevCentral

Throw RuntimeException when Phabricator API call fails.
ClosedPublic

Authored by dereckson on Mar 2 2016, 17:31.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Dec 16, 12:16
Unknown Object (File)
Fri, Dec 13, 19:14
Unknown Object (File)
Wed, Dec 11, 23:50
Unknown Object (File)
Wed, Dec 11, 07:18
Unknown Object (File)
Wed, Dec 11, 07:00
Unknown Object (File)
Thu, Nov 28, 00:37
Unknown Object (File)
Tue, Nov 26, 16:56
Unknown Object (File)
Tue, Nov 26, 15:53
Subscribers

Details

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.

Diff Detail

Repository
rNOTIF Notifications center
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

dereckson retitled this revision from to Throw RuntimeException when Phabricator API call fails..
dereckson updated this object.
dereckson edited the test plan for this revision. (Show Details)
dereckson added a reviewer: dereckson.
dereckson edited edge metadata.
This revision is now accepted and ready to land.Mar 2 2016, 17:43
This revision was automatically updated to reflect the committed changes.