[Bps-public-commit] r17156 - sd/trunk/lib/App/SD
ruz at bestpractical.com
ruz at bestpractical.com
Tue Dec 9 12:52:10 EST 2008
Author: ruz
Date: Tue Dec 9 12:52:09 2008
New Revision: 17156
Modified:
sd/trunk/lib/App/SD/ForeignReplica.pm
Log:
* more debug
Modified: sd/trunk/lib/App/SD/ForeignReplica.pm
==============================================================================
--- sd/trunk/lib/App/SD/ForeignReplica.pm (original)
+++ sd/trunk/lib/App/SD/ForeignReplica.pm Tue Dec 9 12:52:09 2008
@@ -95,7 +95,12 @@
handle => $self->app_handle->handle,
type => 'ticket'
);
- $ticket->load( $uuid_or_luid =~ /^\d+$/? 'luid': 'uuid', $uuid_or_luid );
+ $ticket->load( $uuid_or_luid =~ /^\d+$/? 'luid': 'uuid', $uuid_or_luid )
+ or do {
+ warn "couldn't load ticket #$uuid_or_luid";
+ return undef
+ };
+
my $prop = $self->uuid . '-id';
my $id = $ticket->prop( $prop )
or warn "ticket #$uuid_or_luid has no property '$prop'";
More information about the Bps-public-commit
mailing list