2 files changed, 8 insertions(+), 3 deletions(-)
diff --git a/extras/Projucer/Source/Application/jucer_CommandLine.cpp b/extras/Projucer/Source/Application/jucer_CommandLine.cpp
-index 4dfe6cf..48c7631 100644
+index 4dfe6cf..227895e 100644
--- a/extras/Projucer/Source/Application/jucer_CommandLine.cpp
+++ b/extras/Projucer/Source/Application/jucer_CommandLine.cpp
@@ -733,6 +733,8 @@ namespace
auto settingsFile = userAppData.getChildFile ("Projucer").getChildFile ("Projucer.settings");\r
std::unique_ptr<XmlElement> xml (XmlDocument::parse (settingsFile));\r
+ if (xml == nullptr)\r
-+ ConsoleApplication::fail ("Settings file not valid!");\r
++ throw CommandLineError ("Settings file not valid!");\r
auto settingsTree = ValueTree::fromXml (*xml);\r
\r
if (! settingsTree.isValid())\r
- .getChildWithName ("FALLBACK_PATHS")\r
- .getChildWithName (args[1] + String ("Fallback"));\r
+ .getOrCreateChildWithName ("FALLBACK_PATHS", nullptr)\r
-+ .getOrCreateChildWithName (args[1].text + "Fallback", nullptr);\r
++ .getOrCreateChildWithName (args[1] + String("Fallback"), nullptr);\r
}\r
\r
if (! childToSet.isValid())\r