forked from upstream-mirrors/OpenTracks
Import: convert all failed date parsing into SAXExceptions.
This commit is contained in:
+1
-1
@@ -424,7 +424,7 @@ abstract class AbstractFileTrackImporter extends DefaultHandler implements Track
|
|||||||
} else {
|
} else {
|
||||||
try {
|
try {
|
||||||
timeValue = StringUtils.parseTime(time);
|
timeValue = StringUtils.parseTime(time);
|
||||||
} catch (IllegalArgumentException e) {
|
} catch (Exception e) {
|
||||||
throw new SAXException(createErrorMessage(String.format(Locale.US, "Unable to parse time: %s", time)), e);
|
throw new SAXException(createErrorMessage(String.format(Locale.US, "Unable to parse time: %s", time)), e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user