Skip to content

Firefly III: a personal finances manager

Error if you select nothing

James Cole71ca4f9516f8
diff --git a/app/Console/Commands/Export/ExportData.php b/app/Console/Commands/Export/ExportData.php
index c9a1e28145..2c9539a796 100644
--- a/app/Console/Commands/Export/ExportData.php
+++ b/app/Console/Commands/Export/ExportData.php
@@ -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) {