Development

Changeset 2796

You must first sign up to be able to contribute.

Changeset 2796

Show
Ignore:
Timestamp:
11/23/06 21:21:59 (2 years ago)
Author:
fabien
Message:

added an exception in batch task

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/data/tasks/sfPakeGenerator.php

    r2402 r2796  
    176176  // TODO: add finder here to locate batch skeleton locally or in symfony dirs, and send path to skeletons function 
    177177  $batch = '_batch_'.$args[0]; 
     178 
     179  if (!function_exists($batch)) 
     180  { 
     181    throw new Exception(sprintf('The specified batch "%s" does not exist.', $args[0])); 
     182  } 
     183 
    178184  $batch($task, $args); 
    179185