Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 322577

Summary: The module logError/logWarning/logFatal methods should have better error messages
Product: [Technology] RTSC Reporter: Amit Mookerjee <amitm>
Component: CoreAssignee: Dave Russo <d-russo>
Status: ASSIGNED --- QA Contact:
Severity: normal    
Priority: P3 CC: cring, dfriedland
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description Amit Mookerjee CLA 2010-08-12 15:30:14 EDT
The logError/logWarning/logFatal methods of a module should emit bettor error messages if proper arguments are not passed to them.

For example if the object argument is not passed to "logError" the following message is emitted by XDCtools:

js: "C:/tmp/msp430/idle.cfg", line 55: Error: parameter agg must be defined for $logError()

It is not very clear that the "agg"  parameter represents the module object. Also, the documentation and function parameter names (in om2.xs) should match the documentation provided in RTSCpedia

http://rtsc.eclipse.org/docs-tip/XDCscript_-_Module-Object.$logError