ignite-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexey Kuznetsov (JIRA)" <j...@apache.org>
Subject [jira] [Created] (IGNITE-2373) Revisit server side error handling logic
Date Wed, 13 Jan 2016 16:09:40 GMT
Alexey Kuznetsov created IGNITE-2373:

             Summary: Revisit server side error handling logic
                 Key: IGNITE-2373
                 URL: https://issues.apache.org/jira/browse/IGNITE-2373
             Project: Ignite
          Issue Type: Sub-task
          Components: wizards
    Affects Versions: 1.5
            Reporter: Alexey Kuznetsov
            Assignee: Andrey Novikov
             Fix For: 1.6

We have in /routes 14 times
and  27 times

It seems for me that we should always use send(err) 

And also I think we could introduce a couple of utility functions to reduce boilerplate code
like this
        if (err)
            return res.status(500).send(err.message);

This message was sent by Atlassian JIRA

View raw message