Better on-screen error message when a path is missing in a test.
This commit is contained in:
parent
5629b94e47
commit
0fd0c44c18
9
TBF/Resources/Strings.Designer.cs
generated
9
TBF/Resources/Strings.Designer.cs
generated
@ -5739,6 +5739,15 @@ namespace TBF.Resources {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Looks up a localized string similar to Test {0} config. error : {1} is missing.
|
||||||
|
/// </summary>
|
||||||
|
internal static string Test_0_config_error_1_is_missing {
|
||||||
|
get {
|
||||||
|
return ResourceManager.GetString("Test_0_config_error_1_is_missing", resourceCulture);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Looks up a localized string similar to Test bench.
|
/// Looks up a localized string similar to Test bench.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|||||||
@ -1680,4 +1680,7 @@
|
|||||||
<data name="Delay" xml:space="preserve">
|
<data name="Delay" xml:space="preserve">
|
||||||
<value>Zpoždění</value>
|
<value>Zpoždění</value>
|
||||||
</data>
|
</data>
|
||||||
|
<data name="Test_0_config_error_1_is_missing" xml:space="preserve">
|
||||||
|
<value>Konfigurace testu {0} : chybí {1}</value>
|
||||||
|
</data>
|
||||||
</root>
|
</root>
|
||||||
@ -2311,4 +2311,7 @@
|
|||||||
<data name="Delay" xml:space="preserve">
|
<data name="Delay" xml:space="preserve">
|
||||||
<value>Delay</value>
|
<value>Delay</value>
|
||||||
</data>
|
</data>
|
||||||
|
<data name="Test_0_config_error_1_is_missing" xml:space="preserve">
|
||||||
|
<value>Test {0} config. error : {1} is missing</value>
|
||||||
|
</data>
|
||||||
</root>
|
</root>
|
||||||
@ -658,11 +658,12 @@ namespace TBF.Rig
|
|||||||
|
|
||||||
pmtrs = GetMetersPath(test);
|
pmtrs = GetMetersPath(test);
|
||||||
|
|
||||||
if (isHydroTest && (pfeed == null)) errorMsg = Strings.Cannot_load_feeding_path;
|
if (isHydroTest && (pfeed == null)) errorMsg = string.Format(Strings.Test_0_config_error_1_is_missing, test.Name, Strings.Feeding_chdr);
|
||||||
else if (isHydroTest && (pben == null)) errorMsg = Strings.Cannot_load_bench_path;
|
else if (isHydroTest && (pben == null)) errorMsg = string.Format(Strings.Test_0_config_error_1_is_missing, test.Name, Strings.Bench_chdr);
|
||||||
else if (isHydroTest && (pout == null)) errorMsg = Strings.Cannot_load_output_path;
|
else if (isHydroTest && (pout == null)) errorMsg = string.Format(Strings.Test_0_config_error_1_is_missing, test.Name, Strings.Output_chdr);
|
||||||
else if (pmtrs == null) errorMsg = Strings.Cannot_load_sensor_path;
|
else if (pmtrs == null) errorMsg = string.Format(Strings.Test_0_config_error_1_is_missing, test.Name, Strings.Sensors_chdr);
|
||||||
else errorMsg = string.Empty;
|
else errorMsg = string.Empty;
|
||||||
|
|
||||||
if ((isHydroTest && (pfeed == null || pben == null || pout == null)) || (pmtrs == null))
|
if ((isHydroTest && (pfeed == null || pben == null || pout == null)) || (pmtrs == null))
|
||||||
{
|
{
|
||||||
log.ErrorFormat("GetPaths({0},...) returns false, wrong configuration", test.Name);
|
log.ErrorFormat("GetPaths({0},...) returns false, wrong configuration", test.Name);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user