Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: stringify error in executeAction #1397

Open
wants to merge 1 commit into
base: release52
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/playout-gateway/src/coreHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ export class CoreHandler {
fcnObject
.executeAction(cmd.actionId, cmd.payload)
.then((result) => cb(null, result))
.catch((e) => cb(e.toString, null))
.catch((e) => cb(stringifyError(e), null))
} else if (cmd.actionId) {
this.logger.warning(`Could not execute action "${cmd.actionId}", because there is no handler`)
cb(`Could not execute action "${cmd.actionId}", because there is no handler`)
Expand Down
Loading