aboutsummaryrefslogtreecommitdiffstats
path: root/src/odr-padenc.cpp
diff options
context:
space:
mode:
authorStefan Pöschel <github@basicmaster.de>2017-08-23 17:13:34 +0200
committerStefan Pöschel <github@basicmaster.de>2017-08-23 17:13:34 +0200
commitf39a8abc2293ad73a490552227c37f079c0f4e19 (patch)
tree2d3f09545bb37b196b75b6d5d9ec0699c4dab1f9 /src/odr-padenc.cpp
parentaa45b70efb3d236b313527022dad7ef27eacdae0 (diff)
downloadODR-PadEnc-f39a8abc2293ad73a490552227c37f079c0f4e19.tar.gz
ODR-PadEnc-f39a8abc2293ad73a490552227c37f079c0f4e19.tar.bz2
ODR-PadEnc-f39a8abc2293ad73a490552227c37f079c0f4e19.zip
Improve perror usage
Diffstat (limited to 'src/odr-padenc.cpp')
-rw-r--r--src/odr-padenc.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/odr-padenc.cpp b/src/odr-padenc.cpp
index 2779547..cde6ca9 100644
--- a/src/odr-padenc.cpp
+++ b/src/odr-padenc.cpp
@@ -299,10 +299,8 @@ int PadEncoder::Main() {
fprintf(stderr, "ODR-PadEnc Error: cannot encode file '%s'\n", slide.filepath.c_str());
if (options.erase_after_tx) {
- if (unlink(slide.filepath.c_str()) == -1) {
- fprintf(stderr, "ODR-PadEnc Error: erasing file '%s' failed: ", slide.filepath.c_str());
- perror("");
- }
+ if (unlink(slide.filepath.c_str()) == -1)
+ perror(("ODR-PadEnc Error: erasing file '" + slide.filepath +"' failed").c_str());
}
// while flushing, insert DLS (if present) after a certain PAD amout