Overview
Comment: | Better error logging in Tcl/JS emulation |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: | f69d4ccb30ecf99d814e9654538b16eb2468d7d1 |
User & Date: | rkeene on 2022-03-13 20:15:18 |
Other Links: | manifest | tags |
Context
2022-03-13
| ||
20:23 | Add SHA-512 support (hacked) and a bit of cleanup check-in: a1b40a439c user: rkeene tags: trunk | |
20:15 | Better error logging in Tcl/JS emulation check-in: f69d4ccb30 user: rkeene tags: trunk | |
20:14 | Ignore listing errors in JS-SSH agent check-in: b9b289bb1f user: rkeene tags: trunk | |
Changes
Modified build/tcl/chrome-emu.js from [37c439b24d] to [a176681a9a].
9 9 arg = argInfo[idx]; 10 10 if (typeof(arg) === 'string' || typeof(arg) === 'number') { 11 11 outArray.push(arg); 12 12 } else if (typeof(arg) === 'undefined') { 13 13 outArray.push("<undefined>"); 14 14 } else if (arg === null) { 15 15 outArray.push("<null>"); 16 + } else if (arg instanceof Error) { 17 + outArray.push(arg.stack); 16 18 } else { 17 19 outArray.push(JSON.stringify(arg)); 18 20 } 19 21 } 20 22 return(outArray.join(' ')); 21 23 } 22 24 console.log = function() {