Changeset 1247

Show
Ignore:
Timestamp:
08/09/06 17:51:44
Author:
miyagawa
Message:

Publish::MT: better error message

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/plagger/lib/Plagger/Plugin/Publish/MT.pm

    r1173 r1247  
    4141        ); 
    4242        my $post = $self->mt->getPost($id); 
    43         $context->log( 
    44             info => sprintf( 
    45                 "Successfuly posted: %s", 
    46                 $post->{link}, 
    47             ) 
    48         ); 
     43        $context->log(info => "Successfuly posted: $post->{link}"); 
    4944    }; if (my $err = $@) { 
     45        $err = $err->[0] if ref $err && ref $err eq 'ARRAY'; 
    5046        $context->error($err); 
    5147    }