Add more logging to test 1935

This test is very occasionally failing on buildbots. This adds more
information that will be useful for figuring out exactly what state
the runtime is in when the test fails.

Bug: 77306669
Test: ./test.py --host -j50
Change-Id: If7017a265a6d39b796e50eb8c3d02a62718e85cd
diff --git a/test/1935-get-set-current-frame-jit/src/Main.java b/test/1935-get-set-current-frame-jit/src/Main.java
index 378aaf7..70e94c4 100644
--- a/test/1935-get-set-current-frame-jit/src/Main.java
+++ b/test/1935-get-set-current-frame-jit/src/Main.java
@@ -74,9 +74,11 @@
       if (hasJit()) {
         boolean inOsr = Main.isInOsrCode("run");
         if (expectOsr && !inOsr) {
-          throw new Error("Expected to be in OSR but was not.");
+          throw new Error(
+              "Expected to be in OSR but was not. interpreter: " + Main.isInterpreted());
         } else if (!expectOsr && inOsr) {
-          throw new Error("Expected not to be in OSR but was.");
+          throw new Error(
+              "Expected not to be in OSR but was. interpreter: " + Main.isInterpreted());
         }
       }
       reportValue(TARGET);