Error and warning messages
This commit is contained in:
parent
5384d9a964
commit
37f8d181c2
4
src/jam
4
src/jam
@ -40,6 +40,10 @@ def read_cli():
|
||||
# lattice
|
||||
if c=='L':
|
||||
flag="lattice"
|
||||
else:
|
||||
print("error: unrecognized option '"+c+"'\n", file=sys.stderr)
|
||||
exit()
|
||||
|
||||
|
||||
else:
|
||||
# read lattice argument
|
||||
|
@ -533,6 +533,8 @@ class Painter(Widget):
|
||||
self.set_color((float(color_str[0]),float(color_str[1]),float(color_str[2])))
|
||||
except:
|
||||
print("warning: ignoring line "+str(i)+" in file '"+file+"': color '"+color_str+"' cannot be read",file=sys.stderr)
|
||||
else:
|
||||
print("warning: ignoring line "+str(i)+" in file '"+file+"': unrecognized option '"+key+"'",file=sys.stderr)
|
||||
continue
|
||||
|
||||
entries=line.split(";")
|
||||
|
Loading…
Reference in New Issue
Block a user