Skip to content

Commit 70f4b40

Browse files
authored
Raise RuntimeError from initial exception to preserve more context (#4655)
1 parent 6c1d667 commit 70f4b40

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

third_party/intel/backend/compiler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -457,7 +457,7 @@ def make_spv(src, metadata, options, device_arch):
457457

458458
raise RuntimeError(f'{error}\n'
459459
f'`ocloc` stderr:\n{log}\n'
460-
f'Repro command: {ocloc_cmd}\n')
460+
f'Repro command: {ocloc_cmd}\n') from e
461461

462462
with open(fbin, 'rb') as f:
463463
zebin = f.read()

0 commit comments

Comments
 (0)