Skip to content
Snippets Groups Projects
Commit d24798a3 authored by Dominique Marcadet's avatar Dominique Marcadet
Browse files

small improvements on error messages

parent a961feb0
No related branches found
No related tags found
1 merge request!27Resolve "Verification of enumerations against NSD are not right"
Pipeline #4580 passed
......@@ -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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment