Browse Source

Juceaide: Print descriptive message if a SaveError is thrown

v7.0.9
reuk 2 years ago
parent
commit
88917488fd
No known key found for this signature in database GPG Key ID: FCB43929F012EE5C
1 changed files with 8 additions and 1 deletions
  1. +8
    -1
      extras/Build/juceaide/Main.cpp

+ 8
- 1
extras/Build/juceaide/Main.cpp View File

@@ -562,6 +562,13 @@ int main (int argc, char** argv)
if (it == commands.cend())
juce::ConsoleApplication::fail ("No matching mode", 1);
return it->second (std::move (argumentList));
try
{
return it->second (std::move (argumentList));
}
catch (const juce::build_tools::SaveError& error)
{
juce::ConsoleApplication::fail (error.message);
}
});
}

Loading…
Cancel
Save