Fix error printing code.

Bug: 135694447

Test: Induced error and verified the errors print properly in logcat.
Change-Id: Ie0e6e71671a8a3e26b4632f93bb2af089a20e2e0
Merged-in: Ie0e6e71671a8a3e26b4632f93bb2af089a20e2e0
(cherry picked from commit d943301990367e81bd8752327f27827c9f2abba1)
1 file changed