Return error if kernel fails compilation rather than aborting
@@ -1821,12 +1821,12 @@ class KernelWriter:
assemblerProcess = Popen(assemblerCommand, \
cwd=asmPath )
assemblerProcess.communicate()
- if assemblerProcess.returncode:
- printExit("Assembler process returned with code %u" \
- % assemblerProcess.returncode)
- # read code object file
fileString = ""
+ if assemblerProcess.returncode:
+ error = -1
+ else:
+ # read code object file
if not globalParameters["CodeFromFiles"]:
codeObjectFile = open(codeObjectFileName, "r")
codeObjectByteArray = bytearray(codeObjectFile.read())
