aboutsummaryrefslogtreecommitdiffstats
path: root/teal-src
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2022-08-10 15:10:50 +0200
committerKim Alvefur <zash@zash.se>2022-08-10 15:10:50 +0200
commitd7b7e4afb5df5006db1b127e5033050d5e62d079 (patch)
treecb67a41d7d11e15490fa28e25da516cb00d60695 /teal-src
parent9daa82bfc1d3c65ba8c766b277b5846755917439 (diff)
downloadprosody-d7b7e4afb5df5006db1b127e5033050d5e62d079.tar.gz
prosody-d7b7e4afb5df5006db1b127e5033050d5e62d079.zip
util.error: Use avoid name conflict in Teal interface declaration
Naming things ... Thing or thing_t?
Diffstat (limited to 'teal-src')
-rw-r--r--teal-src/util/error.d.tl16
1 files changed, 8 insertions, 8 deletions
diff --git a/teal-src/util/error.d.tl b/teal-src/util/error.d.tl
index 05f52405..4c3a7196 100644
--- a/teal-src/util/error.d.tl
+++ b/teal-src/util/error.d.tl
@@ -38,7 +38,7 @@ local record protoerror
code : integer
end
-local record error
+local record Error
type : error_type
condition : error_condition
text : string
@@ -55,10 +55,10 @@ local type context = { string : any }
local record error_registry_wrapper
source : string
registry : registry
- new : function (string, context) : error
- coerce : function (any, string) : any, error
- wrap : function (error) : error
- wrap : function (string, context) : error
+ new : function (string, context) : Error
+ coerce : function (any, string) : any, Error
+ wrap : function (Error) : Error
+ wrap : function (string, context) : Error
is_error : function (any) : boolean
end
@@ -66,12 +66,12 @@ local record lib
record configure_opt
auto_inject_traceback : boolean
end
- new : function (protoerror, context, { string : protoerror }, string) : error
+ new : function (protoerror, context, { string : protoerror }, string) : Error
init : function (string, string, registry | compact_registry) : error_registry_wrapper
init : function (string, registry | compact_registry) : error_registry_wrapper
is_error : function (any) : boolean
- coerce : function (any, string) : any, error
- from_stanza : function (table, context, string) : error
+ coerce : function (any, string) : any, Error
+ from_stanza : function (table, context, string) : Error
configure : function
end