Additional diagnostic information in log?

My imp has been going offline and having wifi trouble but the log entries are not particularly helping in trying to understand why. It would be helpful to have additional information, even if it was a code that we lookup on the wiki.

Here is a single section of the log that shows three errors. Not one of them helps me figure out what’s going on (how am I supposed to know what index ‘slice’ is at set:104???).

My imp is constantly powered.

Thu Mar 28 2013 11:57:17 GMT-0600 (MDT): Device configured to be "dj2_c3s_ex3" Thu Mar 28 2013 20:35:32 GMT-0600 (MDT): ERROR: the index 'slice' does not exist Thu Mar 28 2013 20:35:32 GMT-0600 (MDT): ERROR: at set:104 Thu Mar 28 2013 20:35:38 GMT-0600 (MDT): Power state: online=>offline Fri Mar 29 2013 06:32:45 GMT-0600 (MDT): imp restarted, reason: wifi error Fri Mar 29 2013 06:32:45 GMT-0600 (MDT): Power state: offline=>online Fri Mar 29 2013 06:32:45 GMT-0600 (MDT): Device booting Fri Mar 29 2013 06:32:45 GMT-0600 (MDT): Device configured to be "dj2_c3s_ex3"

That’s the line number where your error occurred. Presumably, at line 104 of your Squirrel code, in a function called “set”, you’re calling “slice” on an object that doesn’t have that method (perhaps your code is expecting a string and got a null).

Peter

Thanks Peter. Yes, for that error, that must be the case (null or incomplete string). It’s in the set function of an extension to InputPort where I am parsing the posted value string. The program that sends these should never (theoretically…) post a malformed string but either it did or something got lost during the transmission.