mirror of
https://gitlab.com/scemama/irpf90.git
synced 2024-12-22 12:23:32 +01:00
Better error messages
This commit is contained in:
parent
9c369ef0d0
commit
c1059859be
@ -1,5 +1,6 @@
|
|||||||
include version
|
include version
|
||||||
default:
|
default:
|
||||||
|
set -x
|
||||||
rm *.rpm *.tar.gz *.exe.gz 2> /dev/null ;\
|
rm *.rpm *.tar.gz *.exe.gz 2> /dev/null ;\
|
||||||
VERSION=$(VERSION) epm -f portable -a noarch -m noarch irpf90 irpf90.list ;\
|
VERSION=$(VERSION) epm -f portable -a noarch -m noarch irpf90 irpf90.list ;\
|
||||||
cd noarch ;\
|
cd noarch ;\
|
||||||
|
@ -339,6 +339,7 @@ def move_variables():
|
|||||||
old_elsevars = []
|
old_elsevars = []
|
||||||
revtext = list(text)
|
revtext = list(text)
|
||||||
revtext.reverse()
|
revtext.reverse()
|
||||||
|
try:
|
||||||
for vars,line in revtext:
|
for vars,line in revtext:
|
||||||
if type(line) in [ End_provider,End ]:
|
if type(line) in [ End_provider,End ]:
|
||||||
varlist = []
|
varlist = []
|
||||||
@ -381,6 +382,9 @@ def move_variables():
|
|||||||
else:
|
else:
|
||||||
varlist += vars
|
varlist += vars
|
||||||
append( ([],line) )
|
append( ([],line) )
|
||||||
|
except:
|
||||||
|
error.fail(line,"Unable to parse file")
|
||||||
|
|
||||||
result.reverse()
|
result.reverse()
|
||||||
|
|
||||||
# 2nd pass
|
# 2nd pass
|
||||||
@ -389,6 +393,7 @@ def move_variables():
|
|||||||
append = result.append
|
append = result.append
|
||||||
old_varlist = []
|
old_varlist = []
|
||||||
varlist = []
|
varlist = []
|
||||||
|
try:
|
||||||
for vars,line in text:
|
for vars,line in text:
|
||||||
if vars != []:
|
if vars != []:
|
||||||
vars = make_single(vars)
|
vars = make_single(vars)
|
||||||
@ -417,6 +422,8 @@ def move_variables():
|
|||||||
vars.remove(v)
|
vars.remove(v)
|
||||||
vars.remove(v[1:])
|
vars.remove(v[1:])
|
||||||
result.append( (vars,line) )
|
result.append( (vars,line) )
|
||||||
|
except:
|
||||||
|
error.fail(line,"Unable to parse file")
|
||||||
return result
|
return result
|
||||||
|
|
||||||
main_result = []
|
main_result = []
|
||||||
|
Loading…
Reference in New Issue
Block a user