summaryrefslogtreecommitdiff
path: root/indra/mac_crash_logger/mac_crash_logger.cpp
diff options
context:
space:
mode:
authorGlenn Glazer <coyot@lindenlab.com>2015-09-16 14:21:03 -0700
committerGlenn Glazer <coyot@lindenlab.com>2015-09-16 14:21:03 -0700
commitb09f0a120e53c8b27d196df6a33a42c9ac0e146c (patch)
treeec0eb9ec35ed7a5fe62a98e1c12f272363467879 /indra/mac_crash_logger/mac_crash_logger.cpp
parent1be63209331d509396bd7ee79302d511fe83d72e (diff)
maint-5422 changes and merge from release
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);