Browse Source

Fixed error message to use given parameters. (#12008)

Fixes #11993
tags/8.12.0.alpha1
Anna Koskinen 3 years ago
parent
commit
1f709b081c
No account linked to committer's email address
1 changed files with 5 additions and 4 deletions
  1. 5
    4
      server/src/main/java/com/vaadin/ui/UI.java

+ 5
- 4
server/src/main/java/com/vaadin/ui/UI.java View File

@@ -1588,10 +1588,11 @@ public abstract class UI extends AbstractSingleComponentContainer
* accessSynchronously. Furthermore, there wasn't an
* ErrorHandlingRunnable that handled the exception.
*/
getLogger().log(Level.WARNING,
"access() task ignored because UI got detached after the task was enqueued."
+ " To suppress this message, change the task to implement {} and make it handle {}."
+ " Affected task: {}",
getLogger().log(Level.WARNING, "access() task ignored "
+ "because UI got detached after the task was "
+ "enqueued. To suppress this message, change "
+ "the task to implement {0} and make it handle "
+ "{1}. Affected task: {2}",
new Object[] {
ErrorHandlingRunnable.class.getName(),
UIDetachedException.class.getName(),

Loading…
Cancel
Save