mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
Bug 300371: Improve error message.
This commit is contained in:
parent
b0fca42beb
commit
8e837f668d
2 changed files with 5 additions and 0 deletions
|
@ -1228,6 +1228,10 @@ public class PDOMManager implements IWritableIndexManager, IListener {
|
|||
version= (version << 8) + (b & 0xff);
|
||||
out.write(b);
|
||||
}
|
||||
if (version > PDOM.getMaxSupportedVersion()) {
|
||||
final IStatus status = new Status(IStatus.WARNING, CCorePlugin.PLUGIN_ID, 0, CCorePlugin.getResourceString("PDOMManager.unsupportedHigherVersion"), null); //$NON-NLS-1$
|
||||
throw new CoreException(status);
|
||||
}
|
||||
if ( !PDOM.isSupportedVersion( version ) ) {
|
||||
final IStatus status = new Status(IStatus.WARNING, CCorePlugin.PLUGIN_ID, 0, CCorePlugin.getResourceString("PDOMManager.unsupportedVersion"), null); //$NON-NLS-1$
|
||||
throw new CoreException(status);
|
||||
|
|
|
@ -80,6 +80,7 @@ pdom.indexer.name=C/C++ Indexer
|
|||
pdom.indexer.task=Indexing
|
||||
PDOMIndexerJob.updateMonitorJob=Update Monitor
|
||||
PDOMManager.unsupportedVersion=The team-shared index cannot be imported, its format is no longer supported.
|
||||
PDOMManager.unsupportedHigherVersion=The team-shared index cannot be imported, it has been created with a more recent version of CDT.
|
||||
ProjectDescription.ProjectNotAccessible=Project: {0} is closed or inaccessible\!
|
||||
CCoreInternals.savePreferencesJob=Save preferences
|
||||
CConfigBasedDescriptorManager.0=the project is not a CDT project
|
||||
|
|
Loading…
Add table
Reference in a new issue