More information about arguments when installing updates

pull/3113/head
Mark McDowall 10 years ago
parent 903e804425
commit f214f97047

@ -88,12 +88,26 @@ namespace NzbDrone.Update
return startupContext; return startupContext;
} }
if (args.Count() >= 3) else if (args.Count() == 3)
{ {
startupContext.UpdateLocation = args[1]; startupContext.UpdateLocation = args[1];
startupContext.ExecutingApplication = args[2]; startupContext.ExecutingApplication = args[2];
} }
else
{
logger.Debug("Arguments:");
foreach (var arg in args)
{
logger.Debug(" {0}", arg);
}
var message = String.Format("Number of arguments are unexpected, expected: 3, found: {0}", args.Count());
throw new ArgumentOutOfRangeException("args", message);
}
return startupContext; return startupContext;
} }

@ -119,7 +119,7 @@
} }
@media (min-width: @screen-md-min) { @media (min-width: @screen-md-min) {
width : 140px; width : 135px;
} }
} }
} }

Loading…
Cancel
Save