<p>Oddly, I'm not able to reproduce <a class="issue-link js-issue-link" data-error-text="Failed to load issue title" data-id="333844671" data-permission-text="Issue title is private" data-url="https://github.com/SomeoneElseOSM/SomeoneElse-style/issues/5" href="https://github.com/SomeoneElseOSM/SomeoneElse-style/issues/5">SomeoneElseOSM/SomeoneElse-style#5</a> locally with the latest version of osm2pgsql (with the "Failed to execute lua function for basic tag processing" text in it) and the dodgy style.lua with "z_order = 10*keyvalues["layer"]" in it.  I don't see the reported "Failed to execute" errors, even when I load data that has "layer=yes" in it (Oxfordshire, which contains <a href="https://www.openstreetmap.org/way/68346732" rel="nofollow">https://www.openstreetmap.org/way/68346732</a>).</p>
<p>Obviously I could correct the style.lua, but it'd be nice to know why the error doesn't occur for me first!  Any suggestions as to what to look at?  It's not some sort of alternate type of lua processing that I need to enable is it?  Currently I've just got a Kubuntu 18.04 laptop and followed <a href="https://wiki.openstreetmap.org/wiki/User:SomeoneElse/Ubuntu_1804_tileserver_load#Install_osm2pgsql" rel="nofollow">https://wiki.openstreetmap.org/wiki/User:SomeoneElse/Ubuntu_1804_tileserver_load#Install_osm2pgsql</a> on it.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/openstreetmap/osm2pgsql/pull/845#issuecomment-398876577">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AD2-7rD6A_f0WFv1uf388qfFHm5_NccQks5t-qkLgaJpZM4Te-pY">mute the thread</a>.<img src="https://github.com/notifications/beacon/AD2-7ohMDpicMT0t2TTnDCd-w87SaTWUks5t-qkLgaJpZM4Te-pY.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">{"@context":"http://schema.org","@type":"EmailMessage","potentialAction":{"@type":"ViewAction","target":"https://github.com/openstreetmap/osm2pgsql/pull/845#issuecomment-398876577","url":"https://github.com/openstreetmap/osm2pgsql/pull/845#issuecomment-398876577","name":"View Pull Request"},"description":"View this Pull Request on GitHub","publisher":{"@type":"Organization","name":"GitHub","url":"https://github.com"}}</script>
<script type="application/json" data-scope="inboxmarkup">{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/openstreetmap/osm2pgsql","title":"openstreetmap/osm2pgsql","subtitle":"GitHub repository","main_image_url":"https://assets-cdn.github.com/images/email/message_cards/header.png","avatar_image_url":"https://assets-cdn.github.com/images/email/message_cards/avatar.png","action":{"name":"Open in GitHub","url":"https://github.com/openstreetmap/osm2pgsql"}},"updates":{"snippets":[{"icon":"PERSON","message":"@SomeoneElseOSM in #845: Oddly, I'm not able to reproduce https://github.com/SomeoneElseOSM/SomeoneElse-style/issues/5 locally with the latest version of osm2pgsql (with the \"Failed to execute lua function for basic tag processing\" text in it) and the dodgy style.lua with \"z_order = 10*keyvalues[\"layer\"]\" in it.  I don't see the reported \"Failed to execute\" errors, even when I load data that has \"layer=yes\" in it (Oxfordshire, which contains https://www.openstreetmap.org/way/68346732).\r\n\r\nObviously I could correct the style.lua, but it'd be nice to know why the error doesn't occur for me first!  Any suggestions as to what to look at?  It's not some sort of alternate type of lua processing that I need to enable is it?  Currently I've just got a Kubuntu 18.04 laptop and followed https://wiki.openstreetmap.org/wiki/User:SomeoneElse/Ubuntu_1804_tileserver_load#Install_osm2pgsql on it."}],"action":{"name":"View Pull Request","url":"https://github.com/openstreetmap/osm2pgsql/pull/845#issuecomment-398876577"}}}</script>
<script type="application/ld+json">{
"@type": "MessageCard",
"@context": "http://schema.org/extensions",
"hideOriginalBody": "false",
"originator": "AF6C5A86-E920-430C-9C59-A73278B5EFEB",
"title": "Re: [openstreetmap/osm2pgsql] Lua function errors now trigger runtime exception (#845)",
"sections": [
{
"text": "",
"activityTitle": "**SomeoneElseOSM**",
"activityImage": "https://assets-cdn.github.com/images/email/message_cards/avatar.png",
"activitySubtitle": "@SomeoneElseOSM",
"facts": [

]
}
],
"potentialAction": [
{
"name": "Add a comment",
"@type": "ActionCard",
"inputs": [
{
"isMultiLine": true,
"@type": "TextInput",
"id": "IssueComment",
"isRequired": false
}
],
"actions": [
{
"name": "Comment",
"@type": "HttpPOST",
"target": "https://api.github.com",
"body": "{\n\"commandName\": \"IssueComment\",\n\"repositoryFullName\": \"openstreetmap/osm2pgsql\",\n\"issueId\": 845,\n\"IssueComment\": \"{{IssueComment.value}}\"\n}"
}
]
},
{
"targets": [
{
"os": "default",
"uri": "https://github.com/openstreetmap/osm2pgsql/pull/845#issuecomment-398876577"
}
],
"@type": "OpenUri",
"name": "View on GitHub"
},
{
"name": "Unsubscribe",
"@type": "HttpPOST",
"target": "https://api.github.com",
"body": "{\n\"commandName\": \"MuteNotification\",\n\"threadId\": 326888024\n}"
}
],
"themeColor": "26292E"
}</script>