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

« back to all changes in this revision

Viewing changes to console/console.js

  • Committer: mattgiuca
  • Date: 2008-01-29 02:58:41 UTC
  • Revision ID: svn-v3-trunk0:2b9c9e99-6f39-0410-b283-7f802c844ae2:trunk:323
util.py: Fixed the fix fix.
(Always one step behind ...)

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
 
 
145
136
        // print out the error message (res.exc)
146
137
        var pre = document.createElement("pre");
147
138
        pre.setAttribute("class", "errorMsg");
148
 
        pre.appendChild(document.createTextNode(res.exc[1]));
 
139
        pre.appendChild(document.createTextNode(res.exc));
149
140
        output.appendChild(pre);
150
141
    }
151
142
    else if (res.hasOwnProperty('more'))