From 897d441c02fecb80ef385faf8f4d72c4153baaeb Mon Sep 17 00:00:00 2001 From: Yury Semikhatsky Date: Wed, 19 Jan 2022 10:42:47 -0800 Subject: [PATCH] fix: include var name into tracing error message (#779) --- .../main/java/com/microsoft/playwright/impl/TracingImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/playwright/src/main/java/com/microsoft/playwright/impl/TracingImpl.java b/playwright/src/main/java/com/microsoft/playwright/impl/TracingImpl.java index 9495fb61..b9a4d6a7 100644 --- a/playwright/src/main/java/com/microsoft/playwright/impl/TracingImpl.java +++ b/playwright/src/main/java/com/microsoft/playwright/impl/TracingImpl.java @@ -93,7 +93,7 @@ class TracingImpl implements Tracing { includeSources = options.sources != null; if (includeSources) { if (!context.connection.isCollectingStacks()) { - throw new PlaywrightException("Source root directories must be provided to enable source collection"); + throw new PlaywrightException("Source root directory must be specified via PLAYWRIGHT_JAVA_SRC environment variable when source collection is enabled"); } params.addProperty("sources", true); }