Skip to content
Snippets Groups Projects
Commit 3987e9f5 authored by Jiří Kalvoda's avatar Jiří Kalvoda
Browse files

ModuleParser: Fix in parsing errors

parent 4c7c4761
Branches
No related tags found
No related merge requests found
......@@ -254,7 +254,7 @@ class ConfigValue
try
{
return double.Parse(AsString());
} catch (ArgumentException)
} catch (FormatException)
{
throw new ConfigParseAttributeException(this, "String is not number");
}
......@@ -264,7 +264,7 @@ class ConfigValue
try
{
return int.Parse(AsString());
} catch (ArgumentException)
} catch (FormatException)
{
throw new ConfigParseAttributeException(this, "String is not int");
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment