From e44a300af7ccae051fd48be2c4e43425198b5e7e Mon Sep 17 00:00:00 2001 From: Marc-Andre Laperle Date: Tue, 21 Mar 2017 18:24:04 -0400 Subject: [PATCH] Bug 514021 - Corrupted database only prints Error as message When the pdom for a project it corrupted, the only message in the console/log is "Error". The DBStatus class accepts a message string as a parameter and doesn't use it. If it's changed to use it, then a more useful message is printed: "Corrupted database: foo.1487621676851.pdom" Change-Id: I0d4fb0b97fe1c63661941130e14edea18d0f26ee Signed-off-by: Marc-Andre Laperle --- .../parser/org/eclipse/cdt/internal/core/pdom/db/DBStatus.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/pdom/db/DBStatus.java b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/pdom/db/DBStatus.java index b4e5e9f9032..a91f4cf1108 100644 --- a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/pdom/db/DBStatus.java +++ b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/pdom/db/DBStatus.java @@ -28,6 +28,6 @@ public class DBStatus extends Status { } public DBStatus(String msg) { - super(IStatus.ERROR, CCorePlugin.PLUGIN_ID, 0, "Error", null); //$NON-NLS-1$ + super(IStatus.ERROR, CCorePlugin.PLUGIN_ID, 0, msg, null); } }