From 1be8673326cfd1b23c3265c513d92d9c7abdc54f Mon Sep 17 00:00:00 2001
From: Alexander Diewald <diewald@fortiss.org>
Date: Fri, 21 Aug 2020 18:42:42 +0200
Subject: [PATCH] MigrationService: Clearer error msg for faulty providers

Issue-Ref: 3541
Issue-Url: https://af3-developer.fortiss.org/issues/3541
Signed-off-by: Alexander Diewald <diewald@fortiss.org>
---
 .../src/org/fortiss/tooling/kernel/internal/.ratings           | 2 +-
 .../org/fortiss/tooling/kernel/internal/MigrationService.java  | 3 ++-
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/org.fortiss.tooling.kernel/src/org/fortiss/tooling/kernel/internal/.ratings b/org.fortiss.tooling.kernel/src/org/fortiss/tooling/kernel/internal/.ratings
index de432414d..a4ed1ae12 100644
--- a/org.fortiss.tooling.kernel/src/org/fortiss/tooling/kernel/internal/.ratings
+++ b/org.fortiss.tooling.kernel/src/org/fortiss/tooling/kernel/internal/.ratings
@@ -7,7 +7,7 @@ ElementCompositorService.java 98c5d27e09881e60aa4f87c1ac0c7787cdec9f7c GREEN
 LibraryPrototypeProvider.java b77eddbdca78f561ffb1233e98817be361c690ae GREEN
 LibraryService.java d22671ba820466062852c15873698adf28960d94 GREEN
 LoggingService.java da784259f7b456b54bf75c41ec268f64919ce78d GREEN
-MigrationService.java 2f800eac9793aa736089a802bbfc2c4c1c09770d GREEN
+MigrationService.java 8df3452b6dd58424ee581fc7ac4f801244e8d63b YELLOW
 PersistencyService.java 2e3936012a9b7217a293cbe8272ffa5f02518045 GREEN
 PrototypeService.java cf8e6fa96ba9c2f65b24400054ed68e93238a975 GREEN
 ToolingKernelInternal.java f6e7114825748683c7f1d040b41ab854a6c4d79b GREEN
diff --git a/org.fortiss.tooling.kernel/src/org/fortiss/tooling/kernel/internal/MigrationService.java b/org.fortiss.tooling.kernel/src/org/fortiss/tooling/kernel/internal/MigrationService.java
index 2f800eac9..8df3452b6 100644
--- a/org.fortiss.tooling.kernel/src/org/fortiss/tooling/kernel/internal/MigrationService.java
+++ b/org.fortiss.tooling.kernel/src/org/fortiss/tooling/kernel/internal/MigrationService.java
@@ -118,7 +118,8 @@ public class MigrationService extends ObjectAwareServiceBase<IMigrationProvider>
 						error(ToolingKernelActivator.getDefault(),
 								"Migrating " + input.getSaveableName() + " failed: A need for " +
 										"migration is indicated although the migration was " +
-										"already performed. Please fix the migrator (or model).");
+										"already performed. Please fix the migrator " +
+										provider.getClass().getSimpleName() + " or the model.");
 					}
 				}
 				unknownFeatures.entrySet().removeAll(migratedFeatures.entrySet());
-- 
GitLab