Changeset View
Changeset View
Standalone View
Standalone View
src/applications/files/storage/PhabricatorFile.php
| Show First 20 Lines • Show All 551 Lines • ▼ Show 20 Lines | while (true) { | ||||
| } | } | ||||
| } catch (Exception $ex) { | } catch (Exception $ex) { | ||||
| if ($redirects) { | if ($redirects) { | ||||
| throw new PhutilProxyException( | throw new PhutilProxyException( | ||||
| pht( | pht( | ||||
| 'Failed to fetch remote URI "%s" after following %s redirect(s) '. | 'Failed to fetch remote URI "%s" after following %s redirect(s) '. | ||||
| '(%s): %s', | '(%s): %s', | ||||
| $uri, | $uri, | ||||
| new PhutilNumber(count($redirects)), | phutil_count($redirects), | ||||
| implode(' > ', array_keys($redirects)), | implode(' > ', array_keys($redirects)), | ||||
| $ex->getMessage()), | $ex->getMessage()), | ||||
| $ex); | $ex); | ||||
| } else { | } else { | ||||
| throw $ex; | throw $ex; | ||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 813 Lines • Show Last 20 Lines | |||||