<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title></title>
</head>
<body>
<div name="messageBodySection" style="font-size: 14px; font-family: -apple-system, BlinkMacSystemFont, sans-serif;">
Hi Dennis,
<div><br>
</div>
<div>I do this (use begin…end) religiously so that is not the cause in this case (see attached script (work in progress))</div>
<div>It is not big deal only a bit annoying.</div>
<div><br>
</div>
<div>/M</div>
</div>
<div name="messageSignatureSection" style="font-size: 14px; font-family: -apple-system, BlinkMacSystemFont, sans-serif;">
<br>
<p class="MsoNormal"><b><i>Marston S. Ward</i></b><br>
</p>
</div>
<div name="messageReplySection" style="font-size: 14px; font-family: -apple-system, BlinkMacSystemFont, sans-serif;">
<br>
On 22 Nov 2017, 17:58 +0100, Dennis Shea <shea@ucar.edu>, wrote:<br>
<blockquote type="cite" style="margin: 5px 5px; padding-left: 10px; border-left: thin solid #1abc9c;">
<div dir="ltr">
<div>
<div>
<div><a href="http://www.ncl.ucar.edu/Document/Manuals/Ref_Manual/NclStatements.shtml#Blocks">http://www.ncl.ucar.edu/Document/Manuals/Ref_Manual/NclStatements.shtml#Blocks</a><br>
<br>
</div>
Must use<br>
<br>
</div>
begin<br>
   ...<br>
</div>
end<br>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Wed, Nov 22, 2017 at 8:35 AM, Marston Ward <span dir="ltr">
<<a href="mailto:marston.johnston@gu.se" target="_blank">marston.johnston@gu.se</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 5px 5px; padding-left: 10px; border-left: thin solid #e67e22;">
<div>
<div name="messageBodySection" style="font-size:14px;font-family:-apple-system,BlinkMacSystemFont,sans-serif">
Hi,
<div><br>
</div>
<div>Is there a way to get NCL to exit on detecting a syntax error in a function and not continuing on in the main program?</div>
<div>As it stands now in NCL 6.4.0, if an error is detected in a function called from the main program, the error is listed in the </div>
<div>terminal output at the beginning of the run but then the script continues.</div>
<div>So in the case of debugging when there are lots of print statements, I have to scroll up to the beginning of the run to </div>
<div>check for errors.</div>
<div><br>
</div>
<div>I hope I’m clear about this.</div>
<div><br>
</div>
<div>Best,</div>
<div>/M</div>
</div>
<div name="messageSignatureSection" style="font-size:14px;font-family:-apple-system,BlinkMacSystemFont,sans-serif">
<br>
<p class="MsoNormal"><b><i>Marston S. Ward</i></b><br>
</p>
</div>
</div>
<br>
______________________________<wbr>_________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@ucar.edu">ncl-talk@ucar.edu</a><br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank">http://mailman.ucar.edu/<wbr>mailman/listinfo/ncl-talk</a><br>
<br>
</blockquote>
</div>
<br>
</div>
</blockquote>
</div>
</body>
</html>