diff options
author | Colin Cross <ccross@android.com> | 2019-09-23 15:52:40 -0700 |
---|---|---|
committer | Michael Bestas <mkbestas@lineageos.org> | 2019-12-11 19:03:32 +0200 |
commit | 7081e8ebbaafcacbce79729e35b54032c276f516 (patch) | |
tree | f76bbd80142b26048f9197ffc5aba2282068e208 /java/dexpreopt.go | |
parent | 5125c11f4e58868433da02f85d0d43716b044815 (diff) | |
download | android_build_soong-7081e8ebbaafcacbce79729e35b54032c276f516.tar.gz android_build_soong-7081e8ebbaafcacbce79729e35b54032c276f516.tar.bz2 android_build_soong-7081e8ebbaafcacbce79729e35b54032c276f516.zip |
Use ctx.Fatalln instead of log.Fatalln for absolute path errors
log.Fatalln calls os.Exit, which skips deferred functions and
leaves the console with the cursor disabled. Use ctx.Fatalln
instead, which uses a panic to exit and calls the deferred
function to restore the cursor.
Test: DIST_DIR=/tmp/\test\ foo m dist
Change-Id: Ie92297075e37c171d5ba48848a0ddb19652b051c
Diffstat (limited to 'java/dexpreopt.go')
0 files changed, 0 insertions, 0 deletions