Merge "Further improving TAPL error messages" into sc-v2-dev

This commit is contained in:
Vadim Tryshev authored and Android (Google) Code Review committed 2021-07-20 20:04:35 +00:00
commit 9d7cc7d59f
1 file changed
+2 -3
@@ -514,9 +514,8 @@ public final class LauncherInstrumentation {
void fail(String message) {
checkForAnomaly();
Assert.fail(formatSystemHealthMessage(formatErrorWithEvents(
"http://go/tapl test failure:\nContext: " + getContextDescription()
+ " => resulting visible state is " + getVisibleStateMessage()
+ ";\nDetails: " + message, true)));
"http://go/tapl test failure: " + message + ";\nContext: " + getContextDescription()
+ "; now visible state is " + getVisibleStateMessage(), true)));
}
private String getContextDescription() {