<p>Well, with your initial patch, it would return <code>0</code>, while hiding the error. I consider this to be the correct approach from a scripting perspective, especially since transformation errors are quite cumbersome.</p>

<p>Input errors can be caught beforehand, if needed, through the use of the regex operator, <code>=~</code>.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">&mdash;<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly or <a href="https://github.com/OpenSIPS/opensips/pull/836#issuecomment-200420032">view it on GitHub</a><img alt="" height="1" src="https://github.com/notifications/beacon/AFOciUBXUFp6nhT4O5RgrvWF17-Bz5wtks5pwWgIgaJpZM4H2UD-.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
  <link itemprop="url" href="https://github.com/OpenSIPS/opensips/pull/836#issuecomment-200420032"></link>
  <meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>