Merge branch '3.5' into 3

This commit is contained in:
Daniel Hensby 2017-01-23 16:25:14 +00:00
commit de8b5d6623
No known key found for this signature in database
GPG Key ID: B00D1E9767F0B06E
2 changed files with 6 additions and 2 deletions

View File

@ -79,7 +79,7 @@ class LeftAndMain extends Controller implements PermissionProvider {
* @config
* @var string
*/
private static $help_link = '//userhelp.silverstripe.org/framework/en/3.3';
private static $help_link = '//userhelp.silverstripe.org/framework/en/3.5';
/**
* @var array

View File

@ -81,7 +81,11 @@ class CsvBulkLoader extends BulkLoader {
@unlink($file);
}
} catch (Exception $e) {
print "Failed to parse {$last}\n";
$failedMessage = sprintf("Failed to parse %s", $last);
if (Director::isDev()) {
$failedMessage = sprintf($failedMessage . " because %s", $e->getMessage());
}
print $failedMessage . PHP_EOL;
}
return $result;