Merge branch '3.4' into 3.5

This commit is contained in:
Daniel Hensby 2017-01-23 16:22:53 +00:00
commit e7e5d42865
No known key found for this signature in database
GPG Key ID: B00D1E9767F0B06E

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;