1
0
mirror of https://github.com/elisspace/autopsy.git synced 2026-09-06 02:24:30 +00:00

Pulled error messages out into Bundle.properties instead of literals.

This commit is contained in:
alexjacks92
2014-03-13 13:07:28 -04:00
parent 3226e1001b
commit 005259fded
2 changed files with 8 additions and 6 deletions

View File

@@ -158,6 +158,8 @@ ReportGenerator.artTableColHdr.appPath=App Path
ReportGenerator.artTableColHdr.replytoAddress=ReplyTo Address
ReportGenerator.artTableColHdr.mailServer=Mail Server
ReportGenerator.artTableColHdr.tags=Tags
ReportGenerator.errors.reportErrorTitle=Error generating report
ReportGenerator.errors.reportErrorText=Error generating report:
ReportHTML.link.viewFile=View File
ReportHTML.addThumbRows.dataType.title=Tagged Images - {0}
ReportHTML.addThumbRows.dataType.msg=Tagged Results and Contents that contain images.

View File

@@ -257,8 +257,8 @@ import org.sleuthkit.datamodel.TskData;
get();
} catch (InterruptedException | ExecutionException ex) {
MessageNotifyUtil.Notify.show(
"Error generating report",
"Error generating report: " + ex.getLocalizedMessage(),
NbBundle.getMessage(this.getClass(), "ReportGenerator.errors.reportErrorTitle"),
NbBundle.getMessage(this.getClass(), "ReportGenerator.errors.reportErrorText") + ex.getLocalizedMessage(),
MessageNotifyUtil.MessageType.ERROR);
logger.log(Level.SEVERE, "failed to generate reports", ex);
}
@@ -359,8 +359,8 @@ import org.sleuthkit.datamodel.TskData;
get();
} catch (InterruptedException | ExecutionException ex) {
MessageNotifyUtil.Notify.show(
"Error generating report",
"Error generating report: " + ex.getLocalizedMessage(),
NbBundle.getMessage(this.getClass(), "ReportGenerator.errors.reportErrorTitle"),
NbBundle.getMessage(this.getClass(), "ReportGenerator.errors.reportErrorText") + ex.getLocalizedMessage(),
MessageNotifyUtil.MessageType.ERROR);
logger.log(Level.SEVERE, "failed to generate reports", ex);
}
@@ -622,8 +622,8 @@ import org.sleuthkit.datamodel.TskData;
get();
} catch (InterruptedException | ExecutionException ex) {
MessageNotifyUtil.Notify.show(
"Error generating report",
"Error generating report: " + ex.getLocalizedMessage(),
NbBundle.getMessage(this.getClass(), "ReportGenerator.errors.reportErrorTitle"),
NbBundle.getMessage(this.getClass(), "ReportGenerator.errors.reportErrorText") + ex.getLocalizedMessage(),
MessageNotifyUtil.MessageType.ERROR);
logger.log(Level.SEVERE, "failed to generate reports", ex);
}