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:
parent
6fba7f6308
commit
d2fa78ba95
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user