Skip to content

Commit

Permalink
Merge pull request #2941 from dizzymonkey/timob-9735
Browse files Browse the repository at this point in the history
TIMOB-9735 dont show error dialog when app is running in production mode
  • Loading branch information
pingwang2011 committed Sep 14, 2012
2 parents 6162ef5 + be00b74 commit 33e494c
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,11 @@ protected void handleOpenErrorDialog(ExceptionMessage error)

printError(error.title, error.message, error.sourceName, error.line, error.lineSource, error.lineOffset);

TiApplication tiApplication = TiApplication.getInstance();
if (tiApplication.getDeployType().equals(TiApplication.DEPLOY_TYPE_PRODUCTION)) {
return;
}

if (!dialogShowing) {
dialogShowing = true;
final ExceptionMessage fError = error;
Expand Down

0 comments on commit 33e494c

Please sign in to comment.