Skip to content

Commit 37a7d76

Browse files
API.read_only: improve error message
1 parent 5991c4b commit 37a7d76

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

file-browser.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -652,7 +652,7 @@ end
652652
--handles the read-only table logic
653653
do
654654
local references = setmetatable({}, { __mode = 'k' })
655-
local newindex = function(t, k, v) error(("attempted to assign %s to key %s in read-only table %s"):format(v, k, t)) end
655+
local newindex = function(t, k, v) error(("attempted to assign `%s` to key `%s` in read-only %s"):format(v, k, t)) end
656656

657657
--returns a read-only reference to the table t
658658
function API.read_only(t)

0 commit comments

Comments
 (0)