mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-14 08:11:20 +00:00
Error if you select nothing
This commit is contained in:
@@ -135,6 +135,11 @@ class ExportData extends Command
|
|||||||
|
|
||||||
$data = $exporter->export();
|
$data = $exporter->export();
|
||||||
|
|
||||||
|
if(0===count($data)) {
|
||||||
|
$this->error('You must export *something*. Use --export-transactions or another option. See docs.firefly-iii.org');
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
$this->exportData($options, $data);
|
$this->exportData($options, $data);
|
||||||
} catch (FireflyException $e) {
|
} catch (FireflyException $e) {
|
||||||
|
Reference in New Issue
Block a user