Emily's Z80 assembler for the Gameboy.
Revision | 0017be461c61171b000a607ca3007cd7f192d35f (tree) |
---|---|
Zeit | 2021-03-02 17:10:35 |
Autor | AlaskanEmily <emily@alas...> |
Commiter | AlaskanEmily |
Continue assembling when an error occurs in a file
@@ -823,8 +823,12 @@ def assembleFile(block, path): | ||
823 | 823 | for p in sys.argv[1:]: |
824 | 824 | included_names = set() |
825 | 825 | b = Block(p) |
826 | - assembleFile(b, p) | |
827 | - blocks.append(b) | |
826 | + try: | |
827 | + assembleFile(b, p) | |
828 | + blocks.append(b) | |
829 | + except: | |
830 | + print("Error in " + p) | |
831 | + raise | |
828 | 832 | |
829 | 833 | if len(blocks) == 0: |
830 | 834 | sys.exit(0) |