Page MenuHomePhabricator
Paste P9482

(An Untitled Masterwork)
ActivePublic

Authored by Addshore on Sat, Oct 26, 1:57 PM.
private function throwUsageExceptions( $result ) {
var_dump($result);
die();
if ( is_array( $result ) && array_key_exists( 'error', $result ) ) {
throw new UsageException(
$result['error']['code'],
$result['error']['info'],
$result
);
}
}

Event Timeline

Addshore created this paste.Sat, Oct 26, 1:57 PM