13
0

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<short>: 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"?
This commit is contained in:
Mads Kiilerich 2022-10-13 10:37:42 +02:00 committed by Robin Gareus
parent 6fba7f6308
commit d2fa78ba95

View File

@ -86,7 +86,7 @@ class SndfileWriter
{ {
if (SF_ERR_NO_ERROR != SndfileHandle::error ()) { if (SF_ERR_NO_ERROR != SndfileHandle::error ()) {
throw Exception (*this, boost::str (boost::format throw Exception (*this, boost::str (boost::format
("Could create output file (%1%)") % path)); ("Could not create output file (%1%)") % path));
} }
samples_written = 0; samples_written = 0;
add_supported_flag (ProcessContext<T>::EndOfInput); add_supported_flag (ProcessContext<T>::EndOfInput);