From fbee2788ee81bab285ea889c17a629fb97a86757 Mon Sep 17 00:00:00 2001 From: jules Date: Fri, 7 Apr 2017 11:24:35 +0100 Subject: [PATCH] Made File::appendText return false if the write failed --- modules/juce_core/files/juce_File.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/modules/juce_core/files/juce_File.cpp b/modules/juce_core/files/juce_File.cpp index b5826c7cdb..b480e9e4a7 100644 --- a/modules/juce_core/files/juce_File.cpp +++ b/modules/juce_core/files/juce_File.cpp @@ -770,8 +770,7 @@ bool File::appendText (const String& text, if (out.failedToOpen()) return false; - out.writeText (text, asUnicode, writeUnicodeHeaderBytes); - return true; + return out.writeText (text, asUnicode, writeUnicodeHeaderBytes); } bool File::replaceWithText (const String& textToWrite,