This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug translator/10913] bad/misleading translator error message


------- Additional Comments From chwang at redhat dot com  2010-03-22 19:14 -------
Created an attachment (id=4671)
 --> (http://sourceware.org/bugzilla/attachment.cgi?id=4671&action=view)
Patch for 10913

*Very* short patch for 10913.

Would error messages like this be okay?

Embedded:
parse error: could not find matching '%}' to close embedded function block
	at: embedded-code at /home/chwang/Desktop/turnip.stp:3:1
     source: %{
	     ^

Quotes:
parse error: Could not find matching closing quote
	at: string 'enterprise' at <input>:1:17
     source: global starship="enterprise
			     ^
parse error: Could not find matching closing quote
	at: string 'turnip)}' at <input>:3:21
     source: probe begin {printf("turnip)}
				 ^

Took a look at doing something similar for '{' mismatches as well, but haven't
managed to do so without accidentally wiping out other errors within the block.

-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=10913

------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]