Titanium JIRA Archive
Appcelerator Daemon (DAEMON)

[DAEMON-248] Allow arbitrary metadata to be added to error objects

GitHub Issuen/a
TypeImprovement
PriorityCritical
StatusResolved
ResolutionFixed
Resolution Date2018-03-30T05:25:18.000+0000
Affected Version/sn/a
Fix Version/sAppc Daemon 1.1.0
Componentsappcd
Labelsn/a
ReporterChris Barber
AssigneeChris Barber
Created2018-03-30T03:12:04.000+0000
Updated2018-03-30T20:41:47.000+0000

Description

As the daemon routes errors from a plugin to the core or from the core over a WebSocket, errors are treated special so that can recreate the error as a real Error object whenever coming for another context. The problem is error properties are whitelisted and some are computed (getters). All error handling needs to be cleaned up so that we can pass along arbitrary values added to the original error object. When appcd exec is returned an error, the error should be stringified to reveal all properties including the hidden error object properties.

Comments

  1. Chris Barber 2018-03-30

    https://github.com/appcelerator/appc-daemon/pull/306 https://github.com/appcelerator/appc-daemon/pull/307

JSON Source