~azzar1/unity/add-show-desktop-key

« back to all changes in this revision

Viewing changes to console/console.js

  • Committer: drtomc
  • Date: 2008-01-30 22:53:00 UTC
  • Revision ID: svn-v3-trunk0:2b9c9e99-6f39-0410-b283-7f802c844ae2:trunk:340
Mostly fix the block-of-text to the console problem. The tutorial system should call "block" rather than "chat" to send the block of text.

Show diffs side-by-side

added added

removed removed

Lines of Context:
133
133
    else if (res.hasOwnProperty('exc'))
134
134
    {
135
135
        // Failure!
 
136
        // print out any output that came before the error
 
137
        if (res.exc[0].length > 0)
 
138
        {
 
139
            var pre = document.createElement("pre");
 
140
            pre.setAttribute("class", "outputMsg");
 
141
            pre.appendChild(document.createTextNode(res.exc[0]));
 
142
            output.appendChild(pre);
 
143
        }
 
144
 
136
145
        // print out the error message (res.exc)
137
146
        var pre = document.createElement("pre");
138
147
        pre.setAttribute("class", "errorMsg");
139
 
        pre.appendChild(document.createTextNode(res.exc));
 
148
        pre.appendChild(document.createTextNode(res.exc[1]));
140
149
        output.appendChild(pre);
141
150
    }
142
151
    else if (res.hasOwnProperty('more'))