We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2489d9e commit 3263de8Copy full SHA for 3263de8
src/CsvFile.php
@@ -323,7 +323,9 @@ public function writeRow(array $row)
323
as an error. Therefore both conditions are necessary. */
324
if (($ret === false) || (($ret === 0) && (strlen($str) > 0))) {
325
throw new Exception(
326
- "Cannot write to file {$this->getPathname()}",
+ "Cannot write to CSV file " . $this->getPathname() .
327
+ ' Error: ' . error_get_last()['message'] . ' Return: ' . json_encode($ret) .
328
+ ' To write: ' . strlen($str) . ' Written: ' . $ret,
329
Exception::WRITE_ERROR,
330
null,
331
Exception::WRITE_ERROR_STR
0 commit comments