mirror of
https://github.com/JonnyBro/beatrun.git
synced 2024-12-28 12:53:02 +05:00
fix error if update is failed
This commit is contained in:
parent
9fdfbecc7a
commit
9a030fc231
1 changed files with 7 additions and 7 deletions
|
@ -62,8 +62,8 @@ function GetCourse(sharecode)
|
||||||
|
|
||||||
return false
|
return false
|
||||||
end
|
end
|
||||||
end, function(message)
|
end, function(e)
|
||||||
print("An error occurred: " .. message)
|
print("An error occurred: " .. e)
|
||||||
|
|
||||||
return false
|
return false
|
||||||
end, {
|
end, {
|
||||||
|
@ -96,8 +96,8 @@ function UploadCourse()
|
||||||
|
|
||||||
return false
|
return false
|
||||||
end
|
end
|
||||||
end, function(message)
|
end, function(e)
|
||||||
print("Unexpected error: " .. message)
|
print("Unexpected error: " .. e)
|
||||||
end, {
|
end, {
|
||||||
authorization = apikey:GetString(),
|
authorization = apikey:GetString(),
|
||||||
course = util.Base64Encode(filedata, true),
|
course = util.Base64Encode(filedata, true),
|
||||||
|
@ -128,12 +128,12 @@ function UpdateCourse(course_code)
|
||||||
|
|
||||||
return true
|
return true
|
||||||
else
|
else
|
||||||
print("An error occurred: " .. message)
|
print("An error occurred: " .. response.message)
|
||||||
|
|
||||||
return false
|
return false
|
||||||
end
|
end
|
||||||
end, function(message)
|
end, function(e)
|
||||||
print("Unexpected error: " .. message)
|
print("Unexpected error: " .. e)
|
||||||
end, {
|
end, {
|
||||||
authorization = apikey:GetString(),
|
authorization = apikey:GetString(),
|
||||||
code = course_code,
|
code = course_code,
|
||||||
|
|
Loading…
Reference in a new issue