Page MenuHomeDevCentral

Throw RuntimeException when Phabricator API call fails.
ClosedPublic

Authored by dereckson on Mar 2 2016, 17:31.
Tags
None
Referenced Files
F3749718: D315.id743.diff
Sat, Nov 16, 17:24
F3749386: D315.diff
Sat, Nov 16, 14:58
Unknown Object (File)
Fri, Nov 15, 23:13
Unknown Object (File)
Fri, Nov 15, 18:53
Unknown Object (File)
Thu, Nov 14, 22:13
Unknown Object (File)
Thu, Nov 14, 20:12
Unknown Object (File)
Wed, Nov 13, 01:09
Unknown Object (File)
Tue, Nov 12, 01:35
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.