Euphoria
Ticket #561:
pasty.ex error if offline
-
Reported by
ne1uno
Dec 21, 2010
this is from the old pasty, somthing like this fixes the error when you run while offline.
--detect data = -5 if offline
if atom(data) then
puts(1, "An error occurred while submitting your file.\n")
puts(1, "Are you offline?\n")
abort(1)
elsif length(data) and( equal(data[1], "") or equal(data[2], "")) then
puts(1, "An error occurred while submitting your file.\n")
abort(1)
end if
at least one of the tests has a type error if you run it while offline for the same reason.
Details
1. Comment by jeremy
Dec 21, 2010
See: hg:euphoria/rev/83c887e7a09d
changeset: 4315:83c887e7a09d tag: tip user: Jeremy Cowgar <jeremy@cowgar.com> date: Tue Dec 21 04:49:30 2010 -0500 files: demo/net/pastey.ex description: Added error condition check to http_post result, fixes ticket 561
2. Comment by jeremy
Dec 21, 2010
http tests have this atom check added as well, hg:euphoria/rev/b8eac7f70ea9