Changeset View
Changeset View
Standalone View
Standalone View
src/symbols/PhutilSymbolLoader.php
Show First 20 Lines • Show All 290 Lines • ▼ Show 20 Lines | if (!$this->suppressLoad) { | ||||
} | } | ||||
if ($caught) { | if ($caught) { | ||||
// NOTE: We try to load everything even if we fail to load something, | // NOTE: We try to load everything even if we fail to load something, | ||||
// primarily to make it possible to remove functions from a libphutil | // primarily to make it possible to remove functions from a libphutil | ||||
// library without breaking library startup. | // library without breaking library startup. | ||||
if ($should_continue) { | if ($should_continue) { | ||||
// We may not have `pht()` yet. | // We may not have `pht()` yet. | ||||
fprintf( | $message = sprintf( | ||||
STDERR, | |||||
"%s: %s\n", | "%s: %s\n", | ||||
'IGNORING CLASS LOAD FAILURE', | 'IGNORING CLASS LOAD FAILURE', | ||||
$caught->getMessage()); | $caught->getMessage()); | ||||
@file_put_contents('php://stderr', $message); | |||||
} else { | } else { | ||||
throw $caught; | throw $caught; | ||||
} | } | ||||
} | } | ||||
} | } | ||||
if ($this->concrete) { | if ($this->concrete) { | ||||
▲ Show 20 Lines • Show All 144 Lines • Show Last 20 Lines |
Content licensed under Creative Commons Attribution-ShareAlike 4.0 (CC-BY-SA) unless otherwise noted; code licensed under Apache 2.0 or other open source licenses. · CC BY-SA 4.0 · Apache 2.0