From d2fa78ba95b62448d42a4e5495c307383e9bd5c9 Mon Sep 17 00:00:00 2001 From: Mads Kiilerich Date: Thu, 13 Oct 2022 10:37:42 +0200 Subject: [PATCH] Fix "Could create output file" error message In the log output, the error would look like: [ERROR]: Export initialization failed: Exception thrown by AudioGrapher::SndfileWriter: Could create output file (.../export/something.wav) Add the missing negation. But it would perhaps be better phrase the message differently so it not just hints so strongly towards a file system error preventing file creation. Perhaps something like "Failed to initialize sound export to %s"? --- libs/audiographer/audiographer/sndfile/sndfile_writer.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/audiographer/audiographer/sndfile/sndfile_writer.h b/libs/audiographer/audiographer/sndfile/sndfile_writer.h index b106eba6a8..b03f08eb80 100644 --- a/libs/audiographer/audiographer/sndfile/sndfile_writer.h +++ b/libs/audiographer/audiographer/sndfile/sndfile_writer.h @@ -86,7 +86,7 @@ class SndfileWriter { if (SF_ERR_NO_ERROR != SndfileHandle::error ()) { throw Exception (*this, boost::str (boost::format - ("Could create output file (%1%)") % path)); + ("Could not create output file (%1%)") % path)); } samples_written = 0; add_supported_flag (ProcessContext::EndOfInput);