Fix exception message.
[Sone.git] / src / main / java / net / pterodactylus / sone / core / Core.java
index 9f76223..d5625c9 100644 (file)
@@ -569,7 +569,7 @@ public class Core implements IdentityListener {
                identityManager.removeContext((OwnIdentity) sone.getIdentity(), "Sone");
                identityManager.removeProperty((OwnIdentity) sone.getIdentity(), "Sone.LatestEdition");
                try {
-                       configuration.getStringValue("Sone/" + sone.getId() + "/Time").setValue(null);
+                       configuration.getLongValue("Sone/" + sone.getId() + "/Time").setValue(null);
                } catch (ConfigurationException ce1) {
                        logger.log(Level.WARNING, "Could not remove Sone from configuration!", ce1);
                }
@@ -592,7 +592,7 @@ public class Core implements IdentityListener {
                String sonePrefix = "Sone/" + sone.getId();
                Long soneTime = configuration.getLongValue(sonePrefix + "/Time").getValue(null);
                if (soneTime == null) {
-                       logger.log(Level.INFO, "Could not load Sone because there is no Sone has been saved.");
+                       logger.log(Level.INFO, "Could not load Sone because no Sone has been saved.");
                        return;
                }
                long soneModificationCounter = configuration.getLongValue(sonePrefix + "/ModificationCounter").getValue((long) 0);