Commit d24798a3 authored by Dominique Marcadet's avatar Dominique Marcadet

small improvements on error messages

parent a961feb0
Pipeline #4580 passed with stages
in 42 seconds
......@@ -445,7 +445,7 @@ public class RiseClipseValidatorSCL {
console.info( "Web site:" );
console.info( " http://wdi.supelec.fr/software/RiseClipse/" );
console.info( "" );
console.info( "RiseClipseValidatorSCL version: 1.1.0 a17 (11 February 2020)" );
console.info( "RiseClipseValidatorSCL version: 1.1.0 a17 (12 February 2020)" );
console.info( "" );
}
......
......@@ -154,7 +154,9 @@ public class EnumerationValidator extends TypeValidator {
Diagnostic.ERROR,
RiseClipseValidatorSCL.DIAGNOSTIC_SOURCE,
0,
"[NSD validation] value \"" + value + "\" of DA/BDA \"" + name + "\" (line = " + daOrDai.getLineNumber() + ") is not valid for enumeration \"" + this.name + "\"",
"[NSD validation] value \"" + value + "\" of DA/BDA/DAI \"" + name + "\" (line = "
+ daOrDai.getLineNumber() + ") is not valid for EnumType \""
+ enumType.getId() + "\" (line = " + enumType.getLineNumber() + ")",
new Object[] { daOrDai } ));
res = false;
}
......@@ -183,7 +185,7 @@ public class EnumerationValidator extends TypeValidator {
RiseClipseValidatorSCL.DIAGNOSTIC_SOURCE,
0,
"[NSD validation] EnumVal with ord \"" + enumVal.getOrd() + "\" in EnumType (id = " + enumType.getId()
+ ") at line " + enumVal.getLineNumber() + " is no defined as LiteralVal in Enumeration " + getName(),
+ ") at line " + enumVal.getLineNumber() + " is no defined as LiteralVal in standard Enumeration " + getName(),
new Object[] { enumVal } ));
res = false;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment