We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9f9f9e4 commit 6800545Copy full SHA for 6800545
lib/pause.js
@@ -175,7 +175,11 @@ async function parseInput(cmd) {
175
output.print(output.styles.success(' OK '), cmd)
176
}
177
if (cmd?.startsWith('I.grab')) {
178
- output.print(output.styles.debug(JSON.stringify(val, null, 2)))
+ try {
179
+ output.print(output.styles.debug(JSON.stringify(val, null, 2)))
180
+ } catch (err) {
181
+ output.print(output.styles.error(' ERROR '), 'Failed to stringify result:', err.message)
182
+ }
183
184
185
history.push(cmd) // add command to history when successful
0 commit comments