aboutsummaryrefslogtreecommitdiff
path: root/core/src/com/google/inject/internal/Errors.java
diff options
context:
space:
mode:
Diffstat (limited to 'core/src/com/google/inject/internal/Errors.java')
-rw-r--r--core/src/com/google/inject/internal/Errors.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/core/src/com/google/inject/internal/Errors.java b/core/src/com/google/inject/internal/Errors.java
index 5ce3b429..7527e2a1 100644
--- a/core/src/com/google/inject/internal/Errors.java
+++ b/core/src/com/google/inject/internal/Errors.java
@@ -812,6 +812,9 @@ public final class Errors implements Serializable {
Key<?> key = (Key<?>) source;
formatter.format(" while locating %s%n", convert(key, elementSource));
+ } else if (source instanceof Thread) {
+ formatter.format(" in thread %s%n", source);
+
} else {
formatter.format(" at %s%s%n", source, modules);
}