1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-19 15:05:36 +02:00

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 <marc-andre.laperle@ericsson.com>
This commit is contained in:
Marc-Andre Laperle 2017-03-21 18:24:04 -04:00
parent 2b302b9688
commit e44a300af7

View file

@ -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);
}
}