Changeset 2655
- Timestamp:
- 5/24/2012 3:11:07 AM (13 months ago)
- Location:
- trunk/eraser
- Files:
-
- 2 edited
-
Eraser.Util/Win32ErrorCodes.cs (modified) (2 diffs)
-
Eraser/Program.cs (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/eraser/Eraser.Util/Win32ErrorCodes.cs
r2647 r2655 68 68 case SharingViolation: return new SharingViolationException(); 69 69 case BadCommand: return new NotSupportedException(); 70 case BadArguments: return new ArgumentException(); 70 71 } 71 72 … … 99 100 public const int BadCommand = 22; 100 101 public const int NotSupported = 50; 102 public const int BadArguments = 160; 101 103 } 102 104 } -
trunk/eraser/Eraser/Program.cs
r2617 r2655 325 325 new ConsoleActionData(CommandHelp, new ConsoleArguments())); 326 326 program.Handlers.Add("erase", 327 new ConsoleActionData(CommandErase, new EraseArguments())); 327 new ConsoleActionData(CommandErase, new EraseArguments())); 328 328 program.Handlers.Add("addtask", 329 329 new ConsoleActionData(CommandAddTask, new TaskArguments())); … … 343 343 Console.WriteLine(e.Message); 344 344 return e.ErrorCode; 345 } 346 catch (ArgumentException e) 347 { 348 Console.WriteLine(e.Message); 349 return Win32ErrorCode.BadArguments; 345 350 } 346 351 catch (Exception e)
Note: See TracChangeset
for help on using the changeset viewer.
