Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Sleuthkit
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
IRT
Sleuthkit
Commits
5d202c4e
Commit
5d202c4e
authored
5 years ago
by
apriestman
Browse files
Options
Downloads
Patches
Plain Diff
Fix non-critical error path
parent
00060108
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
bindings/java/jni/dataModel_SleuthkitJNI.cpp
+3
-12
3 additions, 12 deletions
bindings/java/jni/dataModel_SleuthkitJNI.cpp
with
3 additions
and
12 deletions
bindings/java/jni/dataModel_SleuthkitJNI.cpp
+
3
−
12
View file @
5d202c4e
...
...
@@ -1225,21 +1225,12 @@ Java_org_sleuthkit_datamodel_SleuthkitJNI_runAddImgNat(JNIEnv * env,
}
if
(
ret
==
1
)
{
//
f
atal error
//
F
atal error
setThrowTskCoreError
(
env
,
msgss
.
str
().
c_str
());
}
else
if
(
ret
==
2
)
{
// TODO TODO
setThrowTskCoreError
(
env
,
msgss
.
str
().
c_str
());
/*
if (tskAuto->isDbOpen()) {
// if we can still talk to the database, it's a non-fatal error
setThrowTskDataError(env, msgss.str().c_str());
}
else {
// we cannot talk to the database, fatal error
setThrowTskCoreError(env, msgss.str().c_str());
}*/
// Non-fatal error
setThrowTskDataError
(
env
,
msgss
.
str
().
c_str
());
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment