An amusing error name... "badLeftsideOfAss"

For test results, bug reports, announcements of new builds etc.

Moderators: winston, another_commander, Getafix

Post Reply
Switeck
---- E L I T E ----
---- E L I T E ----
Posts: 2411
Joined: Mon May 31, 2010 11:11 pm

An amusing error name... "badLeftsideOfAss"

Post by Switeck »

Basically it was saying I'm a bad coder who made a newbie mistake.

16:26:34.390 [script.javaScript.willLoad]: About to load JavaScript ../AddOns/Auto-ECM 0.1.oxp/Scripts/autoecm_system.js
16:26:34.390 [script.javaScript.exception.badLeftsideOfAss]: ***** JavaScript exception (autoecm_system.js.anon-script): ReferenceError: invalid assignment left-hand side
16:26:34.390 [script.javaScript.exception.badLeftsideOfAss]: ../AddOns/Auto-ECM 0.1.oxp/Scripts/autoecm_system.js, line 24: if(player.ship.equipmentStatus("EQ_AUTOECM") == "EQUIPMENT_OK" && player.ship.equipmentStatus("EQ_ECM") == "EQUIPMENT_OK" && missionVariables.autoECM = "TRUE") player.consoleMessage("Auto ECM System ready and enabled.",5);
16:26:34.390 [script.javaScript.load.failed]: ***** Error loading JavaScript script ../AddOns/Auto-ECM 0.1.oxp/Scripts/autoecm_system.js -- compilation failed


The if statement was supposed to be comparing values, not setting values...like
missionVariables.autoECM = "TRUE"
...actually does. I should have had == or === not just a single =.

But it doesn't have to be such a @$$ about it. It even suggested the problem was the left cheeky side. Maybe I should've tried to K.I.S.S. (Keep It Simple, Stupid) it with my code?
User avatar
Commander McLane
---- E L I T E ----
---- E L I T E ----
Posts: 9520
Joined: Thu Dec 14, 2006 9:08 am
Location: a Hacker Outpost in a moderately remote area
Contact:

Re: An amusing error name... "badLeftsideOfAss"

Post by Commander McLane »

:lol:

Fun with abbreviations!

(You know, at its core Oolite is a British software. Therefore everything is fine with abbreviating 'assignment'. If for some reason you'd want to abbreviate 'arsenic', however... :wink: )
User avatar
Smivs
Retired Assassin
Retired Assassin
Posts: 8408
Joined: Tue Feb 09, 2010 11:31 am
Location: Lost in space
Contact:

Re: An amusing error name... "badLeftsideOfAss"

Post by Smivs »

"badLeftsideOfAss"
Good job it wasn't the other side....that would be a right bummer :)
Commander Smivs, the friendliest Gourd this side of Riedquat.
User avatar
JensAyton
Grand Admiral Emeritus
Grand Admiral Emeritus
Posts: 6657
Joined: Sat Apr 02, 2005 2:43 pm
Location: Sweden
Contact:

Re: An amusing error name... "badLeftsideOfAss"

Post by JensAyton »

The identifiers for different types of errors are mechanically reprocessed from SpiderMonkey’s internal identifiers, in this case JSMSG_BAD_LEFTSIDE_OF_ASS. I’m sure someone felt very clever… (There’s also a JSMSG_BAD_DESTRUCT_ASS, which sounds painful.)
Post Reply