error
This commit is contained in:
parent
4c0a3edd4a
commit
3770ff9b57
@ -19,16 +19,16 @@ switch (args.Length)
|
|||||||
onlyJunctions = true;
|
onlyJunctions = true;
|
||||||
if (!File.Exists(xmlPath))
|
if (!File.Exists(xmlPath))
|
||||||
{
|
{
|
||||||
logger.Log(LogLevel.ERROR, "File {0} does not exist.", xmlPath);
|
logger.Log(LogLevel.INFO, "File {0} does not exist.", xmlPath);
|
||||||
return;
|
throw new FileNotFoundException(xmlPath);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case 2:
|
case 2:
|
||||||
xmlPath = args[0];
|
xmlPath = args[0];
|
||||||
if (!File.Exists(xmlPath))
|
if (!File.Exists(xmlPath))
|
||||||
{
|
{
|
||||||
logger.Log(LogLevel.ERROR, "File {0} does not exist.", xmlPath);
|
logger.Log(LogLevel.INFO, "File {0} does not exist.", xmlPath);
|
||||||
return;
|
throw new FileNotFoundException(xmlPath);
|
||||||
}
|
}
|
||||||
if (confirmation.Contains(args[1].ToLower()))
|
if (confirmation.Contains(args[1].ToLower()))
|
||||||
onlyJunctions = true;
|
onlyJunctions = true;
|
||||||
@ -36,7 +36,7 @@ switch (args.Length)
|
|||||||
onlyJunctions = false;
|
onlyJunctions = false;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
logger.Log(LogLevel.ERROR, "Invalid Arguments.");
|
logger.Log(LogLevel.INFO, "Invalid Arguments.");
|
||||||
logger.Log(LogLevel.INFO, "Arguments can be:");
|
logger.Log(LogLevel.INFO, "Arguments can be:");
|
||||||
logger.Log(LogLevel.INFO, "arg0 Path to file: string");
|
logger.Log(LogLevel.INFO, "arg0 Path to file: string");
|
||||||
logger.Log(LogLevel.INFO, "arg1 onlyJunctions: 'yes', '1', 'true'");
|
logger.Log(LogLevel.INFO, "arg1 onlyJunctions: 'yes', '1', 'true'");
|
||||||
|
Loading…
Reference in New Issue
Block a user