kml error report message

This commit is contained in:
Greg DiCristofaro 2020-05-28 10:39:29 -04:00
parent 5de3b7d1f3
commit f6eee25167
2 changed files with 6 additions and 1 deletions

View File

@ -2,6 +2,7 @@ KMLReport.bookmarkError=Could not extract Bookmark information.
# {0} - filePath
KMLReport.errorGeneratingReport=Error adding {0} to case as a report.
KMLReport.exifPhotoError=Could not extract photos with EXIF metadata.
KMLReport.failedToCompleteReport=Failed to complete report.
KMLReport.gpsBookmarkError=Could not get GPS Bookmarks from database.
KMLReport.gpsRouteDatabaseError=Could not get GPS Routes from database.
KMLReport.gpsRouteError=Could not extract GPS Route information.
@ -9,6 +10,7 @@ KMLReport.gpsSearchDatabaseError=Could not get GPS Searches from database.
KMLReport.kmlFileWriteError=Could not write the KML file.
KMLReport.locationDatabaseError=Could not get GPS Last Known Location from database.
KMLReport.locationError=Could not extract Last Known Location information.
KMLReport.partialFailure=There was an error creating the report. Some items were not exported.
KMLReport.stylesheetError=Error placing KML stylesheet. The .KML file will not function properly.
KMLReport.trackpointDatabaseError=Could not get GPS Trackpoints from database.
KMLReport.trackpointError=Could not extract Trackpoint information.

View File

@ -129,6 +129,8 @@ public final class KMLReport implements GeneralReportModule {
* @param waypointList
*/
@Messages({
"KMLReport.failedToCompleteReport=Failed to complete report.",
"KMLReport.partialFailure=There was an error creating the report. Some items were not exported.",
"KMLReport.unableToExtractPhotos=Could not extract photo information.",
"KMLReport.exifPhotoError=Could not extract photos with EXIF metadata.",
"KMLReport.bookmarkError=Could not extract Bookmark information.",
@ -214,11 +216,12 @@ public final class KMLReport implements GeneralReportModule {
List<GeoLocationParseResult<Track>> errors = makeTracks(skCase);
if (!errors.isEmpty()) {
result = ReportProgressPanel.ReportStatus.ERROR;
errorMessage = Bundle.KMLReport_partialFailure();
}
addLocationsToReport(skCase, baseReportDir);
} catch (GeoLocationDataException | IOException | TskCoreException ex) {
errorMessage = "Failed to complete report.";
errorMessage = Bundle.KMLReport_failedToCompleteReport();
logger.log(Level.SEVERE, errorMessage, ex); //NON-NLS
result = ReportProgressPanel.ReportStatus.ERROR;
}