Fix deprecated constructor warning in PatchSetIdHandler

Apparently we are supposed to pass the CmdLineParser instance
into the CmdLineException class.

Change-Id: I4f9d5561c6c337ca23445f906556314f5eb9df01
Signed-off-by: Shawn O. Pearce <sop@google.com>
This commit is contained in:
Shawn O. Pearce
2009-08-28 14:09:41 -07:00
parent 015cde4165
commit 9da49e446e

View File

@@ -37,7 +37,7 @@ public class PatchSetIdHandler extends OptionHandler<PatchSet.Id> {
try {
id = PatchSet.Id.parse(idString);
} catch (IllegalArgumentException e) {
throw new CmdLineException("Invalid patch set: " + idString);
throw new CmdLineException(owner, "Invalid patch set: " + idString);
}
setter.addValue(id);