Skip to content

Commit

Permalink
do not include stacktrace in message
Browse files Browse the repository at this point in the history
rethrow AnalysisServerException since they already have clear messages
  • Loading branch information
abyrd committed Jan 4, 2024
1 parent b3fa65b commit b7d02fd
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -160,8 +160,11 @@ public MultiOriginAssembler (RegionalAnalysis regionalAnalysis, Job job, FileSto
regionalAnalysis.resultStorage.put(csvWriter.resultType(), csvWriter.fileName);
}
}
} catch (AnalysisServerException e) {
throw e;
} catch (Exception e) {
throw new RuntimeException("Exception while creating multi-origin assembler: " + ExceptionUtils.stackTraceString(e));
// Handle any obscure problems we don't want end users to see without context of MultiOriginAssembler.
throw new RuntimeException("Exception while creating multi-origin assembler: " + e.toString(), e);
}
}

Expand Down

0 comments on commit b7d02fd

Please sign in to comment.