Skip to content

Commit b7923db

Browse files
committed
Pass previous
1 parent 46c2c38 commit b7923db

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/Migration/Sources/CSV.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -320,12 +320,12 @@ private function withCsvStream(callable $callback): void
320320
$this->filePath,
321321
new Device\Local('/'),
322322
);
323-
} catch (\Exception) {
323+
} catch (\Exception $e) {
324324
$success = false;
325325
}
326326

327327
if (!$success) {
328-
throw new \Exception('Failed to transfer CSV file from device to local storage.');
328+
throw new \Exception('Failed to transfer CSV file from device to local storage.', previous: $e ?? null);
329329
}
330330
}
331331

0 commit comments

Comments
 (0)