Skip to content
Snippets Groups Projects
Commit b566c8e1 authored by kaloyane's avatar kaloyane
Browse files

minor: possible bugfix (RuntimeException ctor called with two params. and 2nd...

minor: possible bugfix (RuntimeException ctor called with two params. and 2nd was String, when it should have been a Throwable)

SVN: 22122
parent 09704b28
No related branches found
No related tags found
No related merge requests found
......@@ -246,8 +246,8 @@ def convertToPng(dir, transparentColor):
machineLoad = ALLOWED_MACHINE_LOAD_DURING_THUMBNAIL_GENERATION
maxThreads = 100
errorMsg = FileConverter.performConversion(File(dir), strategy, machineLoad, maxThreads)
if errorMsg != None:
raise RuntimeException("Error converting overlays:", errorMsg)
if errorMsg:
raise RuntimeException("Error converting overlays:" + errorMsg)
# ---------------------
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment