summaryrefslogtreecommitdiff
path: root/libcutils/socket_local_server_unix.cpp
diff options
context:
space:
mode:
authorTom Cherry <tomcherry@google.com>2017-08-01 13:50:23 -0700
committerTom Cherry <tomcherry@google.com>2017-08-14 14:07:39 -0700
commit557946e57c375b05deb5ba07b739f27abc70697e (patch)
treea073dadfaa7529739187ae7264abc21b881c8b97 /libcutils/socket_local_server_unix.cpp
parent11a3aeeae3dc887b889d4086d4d26d95c324c08d (diff)
init: use Result<T> for builtin functions
We currently throw out the return values from builtin functions and occasionally log errors with no supporting context. This change uses the newly introduced Result<T> class to communicate a successful result or an error back to callers in order to print an error with clear context when a builtin fails. Example: init: Command 'write /sys/class/leds/vibrator/trigger transient' action=init (/init.rc:245) took 0ms and failed: Unable to write to file '/sys/class/leds/vibrator/trigger': open() failed: No such file or directory Test: boot bullhead Merged-In: Idc18f331d2d646629c6093c1e0f2996cf9b42aec Change-Id: Idc18f331d2d646629c6093c1e0f2996cf9b42aec
Diffstat (limited to 'libcutils/socket_local_server_unix.cpp')
0 files changed, 0 insertions, 0 deletions