diff options
author | 2013-01-15 10:45:28 -0800 | |
---|---|---|
committer | 2013-01-15 10:45:29 -0800 | |
commit | de3b69e0512c00158333a223f6c53c9eac7b3d34 (patch) | |
tree | 6935122b6afec8bbf4290a558b655095c49c8a38 /tools/aapt/Command.cpp | |
parent | 20d47ca81df71096fd74bc9205e0e2a744cb630a (diff) | |
parent | c75d3f5c10bf6d7718ef69c6bbc1cdf64cd8ff04 (diff) |
Merge "Fix the single crunch command to return the right error code." into jb-mr1-dev
Diffstat (limited to 'tools/aapt/Command.cpp')
-rw-r--r-- | tools/aapt/Command.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tools/aapt/Command.cpp b/tools/aapt/Command.cpp index b98925bd184c..c3a093034d7d 100644 --- a/tools/aapt/Command.cpp +++ b/tools/aapt/Command.cpp @@ -1852,7 +1852,11 @@ int doSingleCrunch(Bundle* bundle) String8 input(bundle->getSingleCrunchInputFile()); String8 output(bundle->getSingleCrunchOutputFile()); - return preProcessImageToCache(bundle, input, output); + if (preProcessImageToCache(bundle, input, output) != NO_ERROR) { + // we can't return the status_t as it gets truncate to the lower 8 bits. + return 42; + } + return NO_ERROR; } char CONSOLE_DATA[2925] = { |