summaryrefslogtreecommitdiff
path: root/httemplate
diff options
context:
space:
mode:
authormark <mark>2011-04-30 21:22:55 +0000
committermark <mark>2011-04-30 21:22:55 +0000
commit0a88e0f4e42688c59ca8a2954b28bb4e8ec1ab72 (patch)
tree70cf2ea3c476766e18fd3ffbf3a804d20fb93008 /httemplate
parente9a0b4e11e23ee2be9f2416346fce9e06a70cd02 (diff)
better error handling in google export, #12064
Diffstat (limited to 'httemplate')
-rwxr-xr-xhttemplate/edit/svc_acct.cgi10
1 files changed, 9 insertions, 1 deletions
diff --git a/httemplate/edit/svc_acct.cgi b/httemplate/edit/svc_acct.cgi
index 2eb4a8b86..f2b8e0c4a 100755
--- a/httemplate/edit/svc_acct.cgi
+++ b/httemplate/edit/svc_acct.cgi
@@ -494,7 +494,15 @@ sub max {
my $captcha_url;
my ($export_google) = $part_svc->part_export('acct_google');
if ( $export_google ) {
- $captcha_url = $export_google->captcha_url || '';
+ my $error = $export_google->auth_error;
+ if ( $error ) {
+ if ( $error->{'captcha_url'} ) {
+ $captcha_url = $error->{'captcha_url'};
+ }
+ else {
+ $cgi->param('error', $error->{'message'});
+ }
+ } #if $error
}
</%init>