summaryrefslogtreecommitdiff
path: root/indra/mac_crash_logger/mac_crash_logger.cpp
diff options
context:
space:
mode:
authorOz Linden <oz@lindenlab.com>2016-05-04 13:45:15 -0400
committerOz Linden <oz@lindenlab.com>2016-05-04 13:45:15 -0400
commit8b5a8e3b57d9ccb036c9a849a6b1ba8685c2de41 (patch)
tree627df9ca677e09ed9cc1d5e2c85b4cbb1922daf2 /indra/mac_crash_logger/mac_crash_logger.cpp
parent18928ea6c6f2830a0d45ec412c915eceff1b76b0 (diff)
parent2446fab3746bfef453ec8e3d5a31b30e8f3f91e1 (diff)
merge changes for MAINT-5974
Diffstat (limited to 'indra/mac_crash_logger/mac_crash_logger.cpp')
-rwxr-xr-xindra/mac_crash_logger/mac_crash_logger.cpp11
1 files changed, 6 insertions, 5 deletions
diff --git a/indra/mac_crash_logger/mac_crash_logger.cpp b/indra/mac_crash_logger/mac_crash_logger.cpp
index d6b913829e..72f4ede999 100755
--- a/indra/mac_crash_logger/mac_crash_logger.cpp
+++ b/indra/mac_crash_logger/mac_crash_logger.cpp
@@ -39,16 +39,17 @@ int main(int argc, char **argv)
LLSD options = LLApp::instance()->getOptionData(
LLApp::PRIORITY_COMMAND_LINE);
- if (!(options.has("pid") && options.has("dumpdir")))
- {
- llwarns << "Insufficient parameters to crash report." << llendl;
- }
-
if (! app.init())
{
LL_WARNS() << "Unable to initialize application." << LL_ENDL;
return 1;
}
+
+ if (!(options.has("pid") && options.has("dumpdir")))
+ {
+ LL_WARNS() << "Insufficient parameters to crash report." << llendl;
+ }
+
if (app.getCrashBehavior() != CRASH_BEHAVIOR_ALWAYS_SEND)
{
// return NSApplicationMain(argc, (const char **)argv);