Fw: [p4perl] sync problems

Roger Day roger.day at globalgraphics.com
Fri Mar 11 06:13:15 PST 2005

in my script, $self->Errors returns an empty array.


Tony Smith <tony at smee.org>
Sent by: p4perl-bounces at perforce.com
11/03/2005 13:52
        To:     p4perl at perforce.com
        Subject:        Re: Fw: [p4perl] sync problems

On Friday 11 March 2005 11:31, Roger Day wrote:
> As requested, more detail on the script:

Thanks Roger. The script looks OK except for error checking. You should 
theory) check $self->Errors() after every command you execute. In some 
that's unnecessary, but certainly when things aren't going as expected 
it's a
must. For example, something as simple as this:

foreach my $e ( $self->Errors() )
print( "Perforce error: $e\n" );

will at least give you a clue as to what's happening.  Hope that helps.

p4perl mailing list
p4perl at perforce.com

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://maillist.perforce.com/pipermail/p4perl/attachments/20050311/f2e77659/attachment-0001.html>

More information about the p4perl mailing list