projects
/
dcpomatic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6858483
)
Limit length of error messages in the job manager view.
author
Carl Hetherington
<cth@carlh.net>
Tue, 20 Jan 2015 11:27:06 +0000
(11:27 +0000)
committer
Carl Hetherington
<cth@carlh.net>
Tue, 20 Jan 2015 11:27:06 +0000
(11:27 +0000)
src/lib/job.cc
patch
|
blob
|
history
diff --git
a/src/lib/job.cc
b/src/lib/job.cc
index 5b0b9c6044475a0b11c5e84318b09df409c60908..e11efa407375b03608fc077c327bcc0373ea8ec5 100644
(file)
--- a/
src/lib/job.cc
+++ b/
src/lib/job.cc
@@
-325,7
+325,11
@@
Job::status () const
} else if (finished_ok ()) {
s << String::compose (_("OK (ran for %1)"), seconds_to_hms (_ran_for));
} else if (finished_in_error ()) {
- s << String::compose (_("Error (%1)"), error_summary());
+ string es = error_summary ();
+ if (es.length() > 25) {
+ es = es.substr (0, 25) + "...";
+ }
+ s << String::compose (_("Error (%1)"), es);
} else if (finished_cancelled ()) {
s << _("Cancelled");
}