From de6d1d889ebf15250c04a8ffc204b91af1e447e3 Mon Sep 17 00:00:00 2001 From: Brian Carlstrom Date: Thu, 7 Oct 2010 16:02:11 -0700 Subject: Move LOG_ALWAYS_FATAL to end of app_process Since LOG_ALWAYS_FATAL is always fatal and code after it is by definition unreachable, put the call after other diagnostic output. Change-Id: Ib3a515a04125d8e4f6e8af3a6f59226e8f0dd9cd --- cmds/app_process/app_main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cmds/app_process') diff --git a/cmds/app_process/app_main.cpp b/cmds/app_process/app_main.cpp index 7decf9a..0159edd 100644 --- a/cmds/app_process/app_main.cpp +++ b/cmds/app_process/app_main.cpp @@ -171,9 +171,9 @@ int main(int argc, const char* const argv[]) runtime.start(); } } else { - LOG_ALWAYS_FATAL("app_process: no class name or --zygote supplied."); fprintf(stderr, "Error: no class name or --zygote supplied.\n"); app_usage(); + LOG_ALWAYS_FATAL("app_process: no class name or --zygote supplied."); return 10; } -- cgit v1.1