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 11c2d1c commit 256e525Copy full SHA for 256e525
lib/pause.js
@@ -175,7 +175,12 @@ 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(val))
+ 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
+ output.print(output.styles.error(' RAW VALUE '), String(val))
183
+ }
184
185
186
history.push(cmd) // add command to history when successful
0 commit comments