summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2022-09-17 22:31:49 +0200
committerCarl Hetherington <cth@carlh.net>2022-09-17 22:31:49 +0200
commit0792f10d395c90532e8c778eab22145e746257e6 (patch)
treed872bb2c414a162f240b14589734ef7e3b4fd890
parent345df3ae8254f25299c2fc2022b1143d444f9a56 (diff)
Don't dump empty error details.
-rw-r--r--src/tools/dcpomatic_create.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/tools/dcpomatic_create.cc b/src/tools/dcpomatic_create.cc
index 8ce7d90a2..345c0182b 100644
--- a/src/tools/dcpomatic_create.cc
+++ b/src/tools/dcpomatic_create.cc
@@ -176,8 +176,10 @@ main (int argc, char* argv[])
if (jm->errors ()) {
for (auto i: jm->get()) {
if (i->finished_in_error()) {
- cerr << i->error_summary() << "\n"
- << i->error_details() << "\n";
+ cerr << i->error_summary() << "\n";
+ if (!i->error_details().empty()) {
+ cout << i->error_details() << "\n";
+ }
}
}
exit (EXIT_FAILURE);