speedata / publisher

speedata Publisher - a professional database Publishing system
https://www.speedata.de/
GNU Affero General Public License v3.0
292 stars 36 forks source link

External image not found: better error message #407

Closed pgundlach closed 2 years ago

pgundlach commented 2 years ago
<Layout xmlns="urn:speedata.de:2009/publisher/en"
    xmlns:sd="urn:speedata:2009/publisher/functions/en">

    <Record element="data">
        <PlaceObject>
            <Image file="https://doesnotexist.doesnotexist"></Image>
        </PlaceObject>
    </Record>
</Layout>

returns

Error: [page 1] ...rs/patrick/work/software/publisher/src/lua/publisher.lua:6674: attempt to index a nil value (local 'f')
stack traceback:
        ...ick/work/software/publisher/src/lua/publisher/spinit.lua:54: in function 'call'
        ...ick/work/software/publisher/src/lua/publisher/spinit.lua:389: in function 'main_loop'
        ...ick/work/software/publisher/src/lua/publisher/spinit.lua:398: in main chunk
        [C]: in function 'require'
        [\directlua]:1: in main chunk
Stop processing data

The software should handle this a better.