Allow Diviner to render quasi-documentation
Summary: Take a few more steps forward toward usability.
Test Plan: {F33040}
Reviewers: chad
Reviewed By: chad
CC: aran
Maniphest Tasks: T988
Differential Revision: https://secure.phabricator.com/D4991
This commit is contained in:
@@ -392,6 +392,10 @@ final class DivinerGenerateWorkflow extends DivinerWorkflow {
|
||||
$atom_cache = $this->getAtomCache();
|
||||
$atom = $atom_cache->getAtom($node_hash);
|
||||
|
||||
if (!$atom) {
|
||||
throw new Exception("No such atom with node hash '{$node_hash}'!");
|
||||
}
|
||||
|
||||
$ref = DivinerAtomRef::newFromDictionary($atom['ref']);
|
||||
return $ref->toHash();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user