diff options
| author | 2017-08-24 16:19:45 +0100 | |
|---|---|---|
| committer | 2017-08-24 16:19:45 +0100 | |
| commit | 4a4ebe25f40490306e34171957e17d5d7ac3e0b3 (patch) | |
| tree | e70090eca2cd05249cbd09342a024bfd68cf5f71 /tools/aapt2/Main.cpp | |
| parent | 7142a7a91c2e7c9cc8dfa9d39b13f907d853cf77 (diff) | |
AAPT2: better error handling for daemon mode
Test: manual
Change-Id: Ia1997800ad94f386dbbb4195011395ecee1ba91f
Diffstat (limited to 'tools/aapt2/Main.cpp')
| -rw-r--r-- | tools/aapt2/Main.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/tools/aapt2/Main.cpp b/tools/aapt2/Main.cpp index e4ca7a463df1..82977cb66421 100644 --- a/tools/aapt2/Main.cpp +++ b/tools/aapt2/Main.cpp @@ -101,10 +101,12 @@ static void RunDaemon(IDiagnostics* diagnostics) { std::vector<StringPiece> args; args.insert(args.end(), token_iter, tokenizer.end()); - ExecuteCommand(command, args, diagnostics); - std::cout << "Done" << std::endl; + int ret = ExecuteCommand(command, args, diagnostics); + if (ret != 0) { + std::cerr << "Error" << std::endl; + } + std::cerr << "Done" << std::endl; } - std::cout << "Exiting daemon" << std::endl; } |