Changeset View
Changeset View
Standalone View
Standalone View
src/applications/harbormaster/storage/build/HarbormasterBuildLog.php
Show First 20 Lines • Show All 171 Lines • ▼ Show 20 Lines | if (count($ranges) !== 1) { | ||||
if (!$display_ranges) { | if (!$display_ranges) { | ||||
$display_ranges[] = pht('<null>'); | $display_ranges[] = pht('<null>'); | ||||
} | } | ||||
throw new Exception( | throw new Exception( | ||||
pht( | pht( | ||||
'Attempt to load log bytes (%d - %d) failed: failed to '. | 'Attempt to load log bytes (%d - %d) failed: failed to '. | ||||
'load a single contiguous range. Actual ranges: %s.', | 'load a single contiguous range. Actual ranges: %s.', | ||||
$offset, | |||||
$end, | |||||
implode('; ', $display_ranges))); | implode('; ', $display_ranges))); | ||||
} | } | ||||
$range = head($ranges); | $range = head($ranges); | ||||
if ($range['head'] > $offset || $range['tail'] < $end) { | if ($range['head'] > $offset || $range['tail'] < $end) { | ||||
throw new Exception( | throw new Exception( | ||||
pht( | pht( | ||||
'Attempt to load log bytes (%d - %d) failed: the loaded range '. | 'Attempt to load log bytes (%d - %d) failed: the loaded range '. | ||||
▲ Show 20 Lines • Show All 599 Lines • Show Last 20 Lines |