Catch Model save error on command line?

Hi,

I have a command

class PopulateCommand extends CConsoleCommand {

public function run() {

 $user = new User();


 $user->name = 'test';


  .......


 $user->save();

}

}

class User extends CActiveRecord {

    ......

}

Now $user->save() failed. How do I find anying error information?

Nothing in apache error log. nothing in application.log.

I used try and catch. no exception.

I used $user->getErrors(). nothing.

I am guessing it is the field validation. But I do not know which one it is.

it got a lot fields.

please give me some advice.