mirror of https://github.com/openXC7/prjxray.git
Merge pull request #511 from litghost/more_verbose_db_errors
Accumulate all missing features, rather than stopping on first failure.
This commit is contained in:
commit
e7b5c4958a
|
|
@ -138,6 +138,7 @@ class FasmAssembler(object):
|
|||
(gridinfo.tile_type, db_k, line))
|
||||
|
||||
def parse_fasm_filename(self, filename):
|
||||
missing_features = []
|
||||
for line in fasm.parse_fasm_filename(filename):
|
||||
if not line.set_feature:
|
||||
continue
|
||||
|
|
@ -160,4 +161,10 @@ class FasmAssembler(object):
|
|||
if flat_set_feature.start is not None:
|
||||
address = flat_set_feature.start
|
||||
|
||||
self.enable_feature(tile, feature, address, line_str)
|
||||
try:
|
||||
self.enable_feature(tile, feature, address, line_str)
|
||||
except FasmLookupError as e:
|
||||
missing_features.append(str(e))
|
||||
|
||||
if missing_features:
|
||||
raise FasmLookupError('\n'.join(missing_features))
|
||||
|
|
|
|||
Loading…
Reference in New Issue