Changeset 5905 for trunk/prototype/Sync.php
- Timestamp:
- 04/10/12 11:39:50 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/prototype/Sync.php
r5715 r5905 106 106 $args = array( $args ); 107 107 108 Controller::addFallbackHandler( 0, function($e){ throw $e; } ); 109 108 110 foreach( $args as $i => $data ) 109 111 { … … 122 124 $dt = prepare( $concept, $id, $dt, $data, $oldIds, $mounted, $synced ); 123 125 124 $result = Controller::put( array( 'concept' => $concept, 'id' => $id ), $dt ); 126 try{ 127 $result = Controller::put( array( 'concept' => $concept, 'id' => $id ), $dt ); 128 } 129 catch( Exception $e ){ 130 $return[ $uri ] = $e->getMessage(); 131 unset( $data[$uri] ); 132 continue; 133 } 125 134 126 135 if( !$result )
Note: See TracChangeset
for help on using the changeset viewer.