# HG changeset patch # User Kim Alvefur # Date 1562771076 -7200 # Node ID 6f317e51544da771b7a72a0976907fc086ff282d # Parent 73a8192058f9796db23404d993919781513dd99e util.error: Fix traceback due to missing text field diff -r 73a8192058f9 -r 6f317e51544d util/error.lua --- a/util/error.lua Fri May 10 01:29:26 2019 +0200 +++ b/util/error.lua Wed Jul 10 17:04:36 2019 +0200 @@ -1,7 +1,7 @@ local error_mt = { __name = "error" }; function error_mt:__tostring() - return ("error<%s:%s:%s>"):format(self.type, self.condition, self.text); + return ("error<%s:%s:%s>"):format(self.type, self.condition, self.text or ""); end local function is_err(e)