Verify that a invalid Sone time causes an error.
[Sone.git] / src / main / java / net / pterodactylus / sone / core / SoneParser.java
index 9b960b0..8967cfc 100644 (file)
@@ -117,7 +117,7 @@ public class SoneParser {
                } catch (NumberFormatException nfe1) {
                        /* TODO - mark Sone as bad. */
                        logger.log(Level.WARNING, String.format("Downloaded Sone %s with invalid time: %s", sone, soneTime));
-                       throw new MalformedXml();
+                       throw new MalformedTime();
                }
 
                SimpleXML profileXml = soneXml.get().getNode("profile");