From: <an...@us...> - 2007-10-02 15:03:31
|
Revision: 969 http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=969&view=rev Author: and-81 Date: 2007-10-02 08:03:30 -0700 (Tue, 02 Oct 2007) Log Message: ----------- Modified Paths: -------------- trunk/plugins/IR Server Suite/IR Server Plugins/Microsoft MCE Transceiver/MicrosoftMceTransceiver.cs Modified: trunk/plugins/IR Server Suite/IR Server Plugins/Microsoft MCE Transceiver/MicrosoftMceTransceiver.cs =================================================================== --- trunk/plugins/IR Server Suite/IR Server Plugins/Microsoft MCE Transceiver/MicrosoftMceTransceiver.cs 2007-10-02 15:03:19 UTC (rev 968) +++ trunk/plugins/IR Server Suite/IR Server Plugins/Microsoft MCE Transceiver/MicrosoftMceTransceiver.cs 2007-10-02 15:03:30 UTC (rev 969) @@ -249,9 +249,11 @@ { blasterPort = (BlasterPort)Enum.Parse(typeof(BlasterPort), port, true); } - catch (Exception ex) + catch { - throw new ArgumentException("Invalid Blaster Port", "port", ex); +#if TRACE + Trace.WriteLine("Invalid Blaster Port ({0}), using default ({1})", port, blasterPort.ToString()); +#endif } IrCode code = IrCode.FromByteArray(data); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |