commit | 5b2f852fcfca3499d7e2396a9307b5c2a975a0db | [log] [tgz] |
---|---|---|
author | Chalard Jean <jchalard@google.com> | Mon Dec 20 22:37:02 2021 +0900 |
committer | Chalard Jean <jchalard@google.com> | Mon Dec 20 22:40:18 2021 +0900 |
tree | b26579b6a4a6f5272000cdb3a2956892a5308ee9 | |
parent | 286c0e5336e97b84a2b3daf15eff9b86ae3f7349 [diff] |
Improve error reporting in ConnDiags tests If an exception is thrown before the callback is registered, the finally{} block will fail with an exception explaining the callback can't be unregistered. This masks the actual exception. This will ensure the original exception is printed instead. Test: ConnectivityDiagnosticsManagerTest Change-Id: I38aba86ff6d5d2a2a8a27c389feffd3aab788774