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