Bug - Fixed r13257 - have switch() return message instead of debug

Fluxxdog

Active member
If switch is used without parethesis, such as "switch{", it starts with the first true case it finds. If something like a variable is put in parenthesis with switch, such as "switch(chzburger){", it'll check each case against it.

If, for some reason, "switch(){" is used, mafia generates a debug log rather than say what the problem is. An example log is attached. It'd be nice to have an error message with line number rather than have a script fail. Thanks!
 

Attachments

  • DEBUG_20131124.txt
    2.1 KB · Views: 23

Veracity

Developer
Staff member
This is a Bug Report, rather than a Feature Request; throwing an Exception is never the correct behavior for the ASH compiler. ;)
 
Top