Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 322577 - The module logError/logWarning/logFatal methods should have better error messages
Summary: The module logError/logWarning/logFatal methods should have better error mess...
Status: ASSIGNED
Alias: None
Product: RTSC
Classification: Technology
Component: Core (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Dave Russo CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-08-12 15:30 EDT by Amit Mookerjee CLA
Modified: 2013-05-16 18:12 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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