Skip to content

Commit

Permalink
Merge pull request #270 from g-maxime/false-error
Browse files Browse the repository at this point in the history
Fix error message when saving file from PerFile view
  • Loading branch information
JeromeMartinez authored Jan 31, 2024
2 parents 36b3f31 + a34a68a commit d731718
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Source/Common/Core.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1814,12 +1814,20 @@ void Core::Batch_Launch_Core(handlers::iterator &Handler)

//Core chunk (with a Conformance Point Document)
if (!Out_Core_CSV_FileName.empty() && (!Batch_IsBackuping || Handler->second.Riff->IsModified_Get())) //If backuping, only if file is modified
{
if (!Out_Core_CSV_File.Create(Ztring().From_UTF8(Out_Core_CSV_FileName)))
{
StdErr("--out-Core-CSV=file: error during file creation");
Out_Core_CSV_File.Close();
Out_Core_CSV_FileName.clear();
}
if (!Out_Core_CSV_File.Write(Core+EOL)) //Saving file part
{
StdErr("--out-Core-CSV=file: error during file writing");
Out_Core_CSV_File.Close();
Out_Core_CSV_FileName.clear();
}
}

if (Out_Core_XML || Out_Core_XML_Doc || Out_XML_Doc)
{
Expand Down

0 comments on commit d731718

Please sign in to comment.