Skip to content

Commit 98fb450

Browse files
committed
improve error message in proxy
1 parent 7516258 commit 98fb450

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

analytics-provider/src/main/java/org/digma/intellij/plugin/analytics/RestAnalyticsProvider.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -512,7 +512,7 @@ public HttpResponse proxyCall(HttpRequest request) {
512512
return toHttpResponse(okHttp3Response);
513513

514514
} catch (Exception e) {
515-
throw new AnalyticsProviderException(e);
515+
throw new AnalyticsProviderException("Error in proxy call: " + request, e);
516516
}
517517
}
518518

src/main/kotlin/org/digma/intellij/plugin/ui/jcef/BaseMessageRouterHandler.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ abstract class BaseMessageRouterHandler(protected val project: Project) : Common
317317
val handled = doOnQuery(project, browser, requestJsonNode, request, action)
318318
if (!handled) {
319319
//will be caught bellow and reported by ErrorReporter
320-
throw UnknownActionException("got unknown action $action")
320+
throw UnknownActionException("got unknown action $action in ${this.javaClass.name}")
321321
}
322322
}
323323

0 commit comments

Comments
 (0)