You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by jt...@apache.org on 2022/01/07 17:06:30 UTC
[netbeans] branch master updated: Avoid using word failed in non-fatal debug messages
This is an automated email from the ASF dual-hosted git repository.
jtulach pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/netbeans.git
The following commit(s) were added to refs/heads/master by this push:
new 3cf761d Avoid using word failed in non-fatal debug messages
new 1fc9650 Merge pull request #3425 from JaroslavTulach/jtulach/NoFailed
3cf761d is described below
commit 3cf761dd51ae5c77ba4222cd4730921772bbdf93
Author: Jaroslav Tulach <ja...@oracle.com>
AuthorDate: Fri Jan 7 12:47:44 2022 +0100
Avoid using word failed in non-fatal debug messages
---
ide/projectui/src/org/netbeans/modules/project/ui/ProjectsRootNode.java | 2 +-
.../src/org/netbeans/api/java/source/ModificationResult.java | 2 +-
platform/openide.util/src/org/openide/util/RequestProcessor.java | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/ide/projectui/src/org/netbeans/modules/project/ui/ProjectsRootNode.java b/ide/projectui/src/org/netbeans/modules/project/ui/ProjectsRootNode.java
index def826c..d4512db 100644
--- a/ide/projectui/src/org/netbeans/modules/project/ui/ProjectsRootNode.java
+++ b/ide/projectui/src/org/netbeans/modules/project/ui/ProjectsRootNode.java
@@ -370,7 +370,7 @@ public class ProjectsRootNode extends AbstractNode {
if (!data.hasFirst()) {
LOG.log(
Level.WARNING,
- "Warning - project of {0} in {1} failed to supply a LogicalViewProvider in its lookup", // NOI18N
+ "Warning - project of {0} in {1} doesn't supply a LogicalViewProvider in its lookup", // NOI18N
new Object[]{
project.getClass(),
FileUtil.getFileDisplayName(project.getProjectDirectory())
diff --git a/java/java.source.base/src/org/netbeans/api/java/source/ModificationResult.java b/java/java.source.base/src/org/netbeans/api/java/source/ModificationResult.java
index 4360a96..beda9b8 100644
--- a/java/java.source.base/src/org/netbeans/api/java/source/ModificationResult.java
+++ b/java/java.source.base/src/org/netbeans/api/java/source/ModificationResult.java
@@ -236,7 +236,7 @@ public final class ModificationResult {
}
});
if (exceptions [0] != null) {
- LOG.log(Level.INFO, "ModificationResult commit failed with an exception: ", exceptions[0]);
+ LOG.log(Level.INFO, "Cannot commit changes into " + fo, exceptions[0]);
int s = lastCommitted.size();
for (Throwable t : lastCommitted) {
LOG.log(Level.INFO, "Previous commit number " + s--, t);
diff --git a/platform/openide.util/src/org/openide/util/RequestProcessor.java b/platform/openide.util/src/org/openide/util/RequestProcessor.java
index 7a7ff4b..8de90c6 100644
--- a/platform/openide.util/src/org/openide/util/RequestProcessor.java
+++ b/platform/openide.util/src/org/openide/util/RequestProcessor.java
@@ -2124,7 +2124,7 @@ outer: do {
if (SLOW) {
Item item = todo.item;
if (item != null && item.message == null) {
- item.message = "task failed due to: " + ex;
+ item.message = ex.toString();
item.initCause(ex);
ex = item;
}
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@netbeans.apache.org
For additional commands, e-mail: commits-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists