mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-25 18:45:27 -06:00
Error if you select nothing
This commit is contained in:
parent
5dd5351b0a
commit
71ca4f9516
@ -135,6 +135,11 @@ class ExportData extends Command
|
||||
|
||||
$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 {
|
||||
$this->exportData($options, $data);
|
||||
} catch (FireflyException $e) {
|
||||
|
Loading…
Reference in New Issue
Block a user