make error message prettier
This commit is contained in:
parent
7aaf73cb37
commit
e932687210
@ -189,7 +189,8 @@ def ell(
|
|||||||
|
|
||||||
offsets += extension
|
offsets += extension
|
||||||
if extension < 0:
|
if extension < 0:
|
||||||
raise BuildError(f'Position is too close by at least {-numpy.floor(extension)}. Total extensions would be'
|
ext_floor = -numpy.floor(extension)
|
||||||
|
raise BuildError(f'Position is too close by at least {ext_floor}. Total extensions would be\n\t'
|
||||||
+ '\n\t'.join(f'{key}: {off}' for key, off in zip(ports.keys(), offsets)))
|
+ '\n\t'.join(f'{key}: {off}' for key, off in zip(ports.keys(), offsets)))
|
||||||
|
|
||||||
result = dict(zip(ports.keys(), offsets))
|
result = dict(zip(ports.keys(), offsets))
|
||||||
|
Loading…
Reference in New Issue
Block a user