-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Roan Kattouw wrote:
Add an API module that can be POSTed to to trigger a codereview repo update
$repo = CodeRepository::newFromName( $params['repo'] );
if( !$repo ){
throw new MWException( "Invalid repo {$args[0]}" );
}
Throwing an MWException on invalid input is not very nice. You should really use something like:
Yeah, I was too lazy to investigate how to do it right. The response isn't examined at all by the caller right now, so I had no rush. ;)
Thanks for the tips!
- -- brion