Verbose error for negative positions in gerbers when the origin is wrong https://github.com/andreika-git/hellen-one/issues/350

This commit is contained in:
andreika-git 2023-12-09 23:05:00 +02:00
parent 85b2c71280
commit 9a3b4e6293
1 changed files with 1 additions and 1 deletions

View File

@ -60,7 +60,7 @@ def getCoords(pos, format):
if format[2]:
y = format[2] - y
return [x, y]
sys.exit('Error! Cannot parse position ' + str(pos))
sys.exit('Error! Cannot parse position ' + str(pos) + '. Possible reason is negative position, place origin into bottom left corner')
def getSize(size, format):
if type(size) is list: