Skip to content

cdm.js exported functions to not process.exit() #143

@atheurer

Description

@atheurer

Exiting on an error was fine for CLI utils, but does not work well when you have a daemon. Functions used here will eventually be called by a node.js daemon which provides a REST API for queries. The daemon should not just exit when faced with an error, but send an error to the client and continue operation. In order to do so, all functions in cdm.js can no longer just exit. All functions will need to return a status, and in turn API calls to this daemon will need to return a status as well.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Status

Queued

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions