Skip to content

Commit 44158cf

Browse files
committed
Improve error handling
1 parent 77aa4db commit 44158cf

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

SequenceAnalysis/src/org/labkey/sequenceanalysis/util/SequenceUtil.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ public static boolean hasMinLineCount(File f, long minLines) throws PipelineJobE
162162
}
163163
catch (IOException e)
164164
{
165-
throw new PipelineJobException(e);
165+
throw new PipelineJobException("Error processing file: " + f.getPath(), e);
166166
}
167167
}
168168

jbrowse/src/org/labkey/jbrowse/model/JBrowseSession.java

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,14 @@ public void ensureJsonFilesPrepared(User u, Logger log) throws PipelineJobExcept
217217
{
218218
for (JsonFile x : getJsonFiles(u, true))
219219
{
220-
x.prepareResource(log, false, false);
220+
try
221+
{
222+
x.prepareResource(log, false, false);
223+
}
224+
catch (Exception e)
225+
{
226+
log.error("Unable to process JsonFile: " + getObjectId(), e);
227+
}
221228
}
222229
}
223230

0 commit comments

Comments
 (0)