Error if you select nothing

This commit is contained in:
James Cole 2019-12-27 21:38:09 +01:00
parent 5dd5351b0a
commit 71ca4f9516
No known key found for this signature in database
GPG Key ID: C16961E655E74B5E

View File

@ -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) {