~dmbaturin/soupault

ADD1.error_message() function

Details
Message ID
<cee7fda0-b80a-ee72-eab8-f4e12b1e4cb1@aoirthoir.com>
DKIM signature
pass
Download raw message
Just created ADD1.error_message() function which can also be called with 
err() as follows:

Log.warning(err('include-tag.lua',success..' filepath:'..filepath))

err(plugin_name,message) or ADD1.error_message(plugin_name,message)

Here is the code to create both functions:

-- *********************************************************************
-- * ADD1.error_message()
-- *********************************************************************
   function ADD1.error_message(plugin,message)
     local results
     results = ' page_file:'..page_file..
               ' plugin:'..plugin..
               ' message:'..message
     return results
   end

err = ADD1.error_message

viola!

By all the G-ds and Wonder Woman, I love Soupault and Lua!
Export thread (mbox)