Skip to content

Refine error handling #94

@adrianz-kainos

Description

@adrianz-kainos

Some methods especially in API/Web handlers are missing error handling.
This helper method https://github.com/KainosSoftwareLtd/TechRadar/blob/master/utils/dbhelper.js#L106 also never returns errors.
In some places the callback function uses the inverse order of arguments (error, result) or (error, null). It might help to make it uniform and always return result as the first argument.

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions