mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-10-20 17:41:37 +00:00
plugin: Refactor HTTP and ApiContext foundations
This commit is contained in:
parent
21d4acebc3
commit
7cada2608f
3 changed files with 31 additions and 42 deletions
|
|
@ -11,10 +11,10 @@ Error.Kind = {
|
|||
"Make sure the server is running -- use 'rojo serve' to run it!",
|
||||
},
|
||||
Timeout = {
|
||||
message = "Request timed out.",
|
||||
message = "HTTP request timed out.",
|
||||
},
|
||||
Unknown = {
|
||||
message = "Unknown error: {{message}}",
|
||||
message = "Unknown HTTP error: {{message}}",
|
||||
},
|
||||
}
|
||||
|
||||
|
|
@ -45,7 +45,7 @@ end
|
|||
--[[
|
||||
This method shouldn't have to exist. Ugh.
|
||||
]]
|
||||
function Error.fromErrorString(message)
|
||||
function Error.fromRobloxErrorString(message)
|
||||
local lower = message:lower()
|
||||
|
||||
if lower:find("^http requests are not enabled") then
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue