nikhilgupta10 / GridLAB-D

Other
1 stars 0 forks source link

#816 Fix load.c so it stops processing when it encounters a syntax error in properties, #2548

Open nikhilgupta10 opened 7 years ago

nikhilgupta10 commented 7 years ago

As of r4658 the loader tries to keep going when it encounters an error in object properties. As a result it displays many errors that are unrelated to the actual syntax problem, up to and including \closing } missing. All these subsequent errors are confusing and misleading. They can all be eliminated by adding changing core/load.c:4231(r4658) from

if TERM(object_properties(HERE,oclass,obj)) ACCEPT;

to

if TERM(object_properties(HERE,oclass,obj)) 
{   
    ACCEPT; 
}
else
{
    REJECT;
}

,

nikhilgupta10 commented 7 years ago

nikhilgupta10 imported these comments from Sourceforge: "jcfuller":- Description has changed:

Diff: