From 42fa2a8d0f6891f2d64eeb4de1920655f784e79a Mon Sep 17 00:00:00 2001 From: Dominik Riebeling Date: Wed, 11 Jan 2012 20:18:26 +0100 Subject: Improve error handling and logging. - Fix a warning - Log an error if the file to encode cannot be read. - Adjust some log strings. --- rbutil/rbutilqt/base/talkgenerator.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'rbutil/rbutilqt/base/talkgenerator.cpp') diff --git a/rbutil/rbutilqt/base/talkgenerator.cpp b/rbutil/rbutilqt/base/talkgenerator.cpp index 427df0ed1d..4e78872240 100644 --- a/rbutil/rbutilqt/base/talkgenerator.cpp +++ b/rbutil/rbutilqt/base/talkgenerator.cpp @@ -286,8 +286,9 @@ void TalkGenerator::encProgress(int value) void TalkGenerator::encFailEntry(const TalkEntry& entry) { - emit logItem(tr("Encoding of %1 failed").arg(entry.wavfilename), LOGERROR); - abort(); + emit logItem(tr("Encoding of %1 failed").arg( + QFileInfo(entry.wavfilename).baseName()), LOGERROR); + abort(); } //! \brief slot, which is connected to the abort of the Logger. Sets a flag, so Creating Talkfiles ends at the next possible position -- cgit v1.2.3