How to catch errors in elua (namely NodeMCU)
snippet in lua

How to catch errors in elua (namely NodeMCU)

user8904

ok, t = pcall(require, "ds18b20")
if not ok then
  -- handle error, t has error message
else
  -- can use t
end