# HG changeset patch # User Matthew Wild # Date 1282402396 -3600 # Node ID 59c6f2deb8aba457ee1b9ab25e9d4d8d942a1749 # Parent 7d293830f4a44f082c785d1d60cd5f3e0179a0d1 libs/encodings.lua: Throw error when calling unimplemented function diff -r 7d293830f4a4 -r 59c6f2deb8ab libs/encodings.lua --- a/libs/encodings.lua Sat Aug 21 15:37:04 2010 +0100 +++ b/libs/encodings.lua Sat Aug 21 15:53:16 2010 +0100 @@ -1,5 +1,10 @@ +local function not_impl() + error("Encoding function not implemented"); +end + module "encodings" stringprep = {}; +base64 = { encode = not_impl, decode = not_impl }; return _M;