commit | 9770def72363680dcb1c88c8a8485f1bc6ccebb1 | [log] [tgz] |
---|---|---|
author | Max Dashouk <mdashouk@google.com> | Tue Jul 20 18:34:28 2021 -0700 |
committer | Max Dashouk <mdashouk@google.com> | Wed Jul 21 15:33:18 2021 -0700 |
tree | d1226fc079ce1a5c6fcf9c7482d209129ae6f2b1 | |
parent | 25aabe2ba617a7e10e51129baa84935b212d64aa [diff] |
Implement onError callback. This allows scripts to gracefully log error conditions and push them to script authors. Adds relevant unit tests. Test: atest CarServiceUnitTest:ScriptExecutorTest Bug: b/187517913 Change-Id: I969f885ffbcf6fb8af1f8bcd166eae486557a80d
Native (C++) code format is required to be compatible with .clang-format file. Run
git clang-format --style=file --extension='h,cpp,cc' HEAD~
Note that clang-format is not desirable for Android java files. Therefore the command line above is limited to specific extensions.