Skip to content

Commit 3df9ad6

Browse files
authored
Merge pull request Sofie-Automation#1397 from tv2norge-collab/contribute/EAV-524
fix: stringify error in executeAction
2 parents a757a66 + b2d584e commit 3df9ad6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/playout-gateway/src/coreHandler.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ export class CoreHandler {
261261
fcnObject
262262
.executeAction(cmd.actionId, cmd.payload)
263263
.then((result) => cb(null, result))
264-
.catch((e) => cb(e.toString, null))
264+
.catch((e) => cb(stringifyError(e), null))
265265
} else if (cmd.actionId) {
266266
this.logger.warning(`Could not execute action "${cmd.actionId}", because there is no handler`)
267267
cb(`Could not execute action "${cmd.actionId}", because there is no handler`)

0 commit comments

Comments
 (0)