projects
/
dcpomatic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
345df3a
)
Don't dump empty error details.
author
Carl Hetherington
<cth@carlh.net>
Sat, 17 Sep 2022 20:31:49 +0000
(22:31 +0200)
committer
Carl Hetherington
<cth@carlh.net>
Sat, 17 Sep 2022 20:31:49 +0000
(22:31 +0200)
src/tools/dcpomatic_create.cc
patch
|
blob
|
history
diff --git
a/src/tools/dcpomatic_create.cc
b/src/tools/dcpomatic_create.cc
index 8ce7d90a2c9062a73c44165a3b449667e0feeddd..345c0182bc8215765c9b57de17469f114a51f9e8 100644
(file)
--- 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);