diff options
author | Dominik Riebeling <Dominik.Riebeling@gmail.com> | 2012-01-11 20:18:26 +0100 |
---|---|---|
committer | Dominik Riebeling <Dominik.Riebeling@gmail.com> | 2012-01-14 12:14:49 +0100 |
commit | 42fa2a8d0f6891f2d64eeb4de1920655f784e79a (patch) | |
tree | 45ca0d5b5f162aa705b5376347171dcc59f08a41 /rbutil/rbutilqt/base/talkgenerator.cpp | |
parent | b17bdb93493eec82fa60f5e0f008aa292aed6f10 (diff) | |
download | rockbox-42fa2a8d0f6891f2d64eeb4de1920655f784e79a.tar.gz rockbox-42fa2a8d0f6891f2d64eeb4de1920655f784e79a.zip |
Improve error handling and logging.
- Fix a warning
- Log an error if the file to encode cannot be read.
- Adjust some log strings.
Diffstat (limited to 'rbutil/rbutilqt/base/talkgenerator.cpp')
-rw-r--r-- | rbutil/rbutilqt/base/talkgenerator.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
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) | |||
286 | 286 | ||
287 | void TalkGenerator::encFailEntry(const TalkEntry& entry) | 287 | void TalkGenerator::encFailEntry(const TalkEntry& entry) |
288 | { | 288 | { |
289 | emit logItem(tr("Encoding of %1 failed").arg(entry.wavfilename), LOGERROR); | 289 | emit logItem(tr("Encoding of %1 failed").arg( |
290 | abort(); | 290 | QFileInfo(entry.wavfilename).baseName()), LOGERROR); |
291 | abort(); | ||
291 | } | 292 | } |
292 | 293 | ||
293 | //! \brief slot, which is connected to the abort of the Logger. Sets a flag, so Creating Talkfiles ends at the next possible position | 294 | //! \brief slot, which is connected to the abort of the Logger. Sets a flag, so Creating Talkfiles ends at the next possible position |