adium/adium
Clone
Summary
Browse
Changes
Graph
Prompt the user to authenticate again when using the refresh_token gives an error. Also, show the error to the user.
GoogleOAuth2
2015-04-01, Thijs Alkemade
c4923ddd82bf
Prompt the user to authenticate again when using the refresh_token gives an error. Also, show the error to the user.
global
HandyAdiumScripts
on
run
tell
application
"Adium"
try
delete
service
1
error
on
error
number
num
--trap all errors
if
num
is
-
2700
then
error
-- if the error is the default error, caused by the 'error' directive, pass it along the chain
--otherwise, the command threw correctly
end
try
end
tell
end
run