Skip to content

Which file, client/helpers/errors.js or client/templates/includes/errors.js is better for client error codes ? #297

@qiulang

Description

@qiulang

After reading the chapter 9, I feel a little bit confused, why should I put throwError code in in client/helpers/errors.js, why not in client/templates/includes/errors.js? Especially I knew that put throwError code in client/templates/includes/errors.js.

Actually, my question is not just about this error.js, when I read the book I always have the question that why should I put this code here instead of there ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions