mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-11 23:46:15 +00:00
Update SummaryHelpers.java
Make returned message more meaning full
This commit is contained in:
parent
6242a859ae
commit
ba622eaa22
@ -31,6 +31,7 @@ import java.util.Collection;
|
||||
import java.util.logging.Level;
|
||||
import org.apache.commons.lang.StringUtils;
|
||||
import org.openide.util.Lookup;
|
||||
import org.openide.util.NbBundle;
|
||||
import org.sleuthkit.autopsy.casemodule.Case;
|
||||
import org.sleuthkit.autopsy.casemodule.NoCurrentCaseException;
|
||||
import org.sleuthkit.autopsy.coreutils.ImageUtils;
|
||||
@ -194,6 +195,7 @@ class SummaryHelpers {
|
||||
}
|
||||
}
|
||||
|
||||
@NbBundle.Messages({"SummaryHelper.documentSummary.unable.to.read=Unable to extract text from file."})
|
||||
/**
|
||||
* Get the beginning of text from the specified AbstractFile.
|
||||
*
|
||||
@ -217,7 +219,7 @@ class SummaryHelpers {
|
||||
} catch (IOException ex) {
|
||||
return Bundle.FileSearch_documentSummary_noBytes();
|
||||
} catch (TextExtractor.InitReaderException ex) {
|
||||
return Bundle.FileSearch_documentSummary_noPreview();
|
||||
return Bundle.SummaryHelper_documentSummary_unable_to_read();
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user