summaryrefslogtreecommitdiff
path: root/indra/newview/llappviewermacosx.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'indra/newview/llappviewermacosx.cpp')
-rw-r--r--indra/newview/llappviewermacosx.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/indra/newview/llappviewermacosx.cpp b/indra/newview/llappviewermacosx.cpp
index f21bdc4243..c1e6888478 100644
--- a/indra/newview/llappviewermacosx.cpp
+++ b/indra/newview/llappviewermacosx.cpp
@@ -65,7 +65,12 @@ int main( int argc, char **argv )
#endif
// Set the working dir to <bundle>/Contents/Resources
- (void) chdir(gDirUtilp->getAppRODataDir().c_str());
+ if (chdir(gDirUtilp->getAppRODataDir().c_str()) == -1)
+ {
+ llwarns << "Could not change directory to "
+ << gDirUtilp->getAppRODataDir() << ": " << strerror(errno)
+ << llendl;
+ }
LLAppViewerMacOSX* viewer_app_ptr = new LLAppViewerMacOSX();