From dfaecafbe9fb7c5800191edfe3aa5d5938705204 Mon Sep 17 00:00:00 2001 From: Adam Lesinski Date: Thu, 20 Oct 2016 17:08:51 -0700 Subject: [PATCH] AAPT2: Fail compile on bad output file/dir Test: manual Change-Id: I2578e32c52430a62df942822ddf6bd3f06357bce --- tools/aapt2/compile/Compile.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/aapt2/compile/Compile.cpp b/tools/aapt2/compile/Compile.cpp index d0012288f5e88..2ea63d02b7548 100644 --- a/tools/aapt2/compile/Compile.cpp +++ b/tools/aapt2/compile/Compile.cpp @@ -738,7 +738,7 @@ int compile(const std::vector& args) { } if (!archiveWriter) { - return false; + return 1; } bool error = false;