00:12:38  <bobby_barker>can someone take a look at this for me? I've highlighted the few lines of interest. Long story short - I've trying to return the output of this function to my AJAX call from the front-end. The function outputs correctly and I can get data to the front-end but I can't manage to get the promise-based output to the front-end? Help would be greatly appreciated http://pastie.org/10966425#36-39,123-143,145
00:31:36  * mezodquit (Read error: No route to host)
00:32:29  * mezodjoined
00:35:37  * mezodquit (Read error: Connection reset by peer)
00:36:42  * mezodjoined
00:41:55  * mezodquit (Remote host closed the connection)
01:01:01  * SuperHansjoined
01:05:51  * SuperHansquit (Ping timeout: 260 seconds)
01:13:29  * mezodjoined
01:34:23  * joshonth_quit (Quit: Computer has gone to sleep.)
01:45:03  * bobby_barkerquit (Ping timeout: 260 seconds)
01:46:17  * joshonthewebjoined
01:57:37  * mezodquit (Ping timeout: 240 seconds)
02:37:10  * joshonthewebquit (Remote host closed the connection)
02:39:20  * joshonthewebjoined
03:03:12  * SuperHansjoined
03:08:10  * SuperHansquit (Ping timeout: 256 seconds)
03:24:55  * frankdreyquit (Quit: My MacBook has gone to sleep. ZZZzzz…)
04:03:57  * SuperHansjoined
04:08:38  * SuperHansquit (Ping timeout: 250 seconds)
05:04:46  * SuperHansjoined
05:09:22  * SuperHansquit (Ping timeout: 258 seconds)
05:32:15  * rajan123joined
05:33:50  * ok91joined
05:38:38  * ok91quit (Ping timeout: 268 seconds)
05:43:38  * rajan123quit (Quit: rajan123)
06:05:34  * SuperHansjoined
06:10:03  * SuperHansquit (Ping timeout: 245 seconds)
06:37:30  * TheThingjoined
06:51:40  * frankdreyjoined
07:06:19  * SuperHansjoined
07:10:53  * SuperHansquit (Ping timeout: 244 seconds)
07:11:02  * TheThing_joined
07:13:43  * TheThingquit (Ping timeout: 252 seconds)
07:25:35  * SuperHansjoined
07:30:13  * SuperHansquit (Ping timeout: 248 seconds)
07:32:08  * rajan123joined
07:37:04  * frankdreyquit (Quit: My MacBook has gone to sleep. ZZZzzz…)
07:46:41  * TheThingjoined
07:48:06  * SuperHansjoined
07:48:57  * TheThing_quit (Ping timeout: 240 seconds)
08:06:18  * kudosquit (Ping timeout: 245 seconds)
08:08:17  * kudosjoined
08:20:18  * SuperHansquit (Remote host closed the connection)
08:32:34  * SuperHansjoined
08:38:45  * TheThingquit (Remote host closed the connection)
08:52:06  * tmaximinijoined
09:04:31  * rajan123quit (Quit: rajan123)
09:11:58  * joshonthewebquit (Ping timeout: 256 seconds)
11:25:12  * tmaximiniquit (Remote host closed the connection)
11:57:10  * mezodjoined
12:04:20  * tmaximinijoined
12:26:49  * rajan123joined
12:38:57  * TheThingjoined
12:51:08  * TheThingquit (Remote host closed the connection)
12:53:29  * TheThingjoined
12:54:18  * Lukkyquit (Read error: Connection reset by peer)
12:56:49  * TheThingquit (Remote host closed the connection)
13:05:31  * TheThingjoined
13:08:37  * TheThingquit (Read error: Connection reset by peer)
13:10:58  * TheThingjoined
13:19:52  * tmaximiniquit (Remote host closed the connection)
13:20:25  * tmaximinijoined
13:23:34  * tmaximiniquit (Remote host closed the connection)
13:23:47  * tmaximinijoined
13:26:35  * tmaximiniquit (Remote host closed the connection)
13:27:08  * tmaximinijoined
13:31:28  * tmaximiniquit (Read error: Connection reset by peer)
13:31:44  * tmaximinijoined
14:24:58  * mezodquit (Remote host closed the connection)
14:53:57  * TheThingquit (Ping timeout: 240 seconds)
14:55:13  * mezodjoined
14:58:50  * TheThingjoined
15:18:11  * tmaximiniquit (Remote host closed the connection)
15:25:50  * tmaximinijoined
15:41:06  * tmaximiniquit (Remote host closed the connection)
15:44:14  * tmaximinijoined
16:11:46  * tmaximiniquit (Remote host closed the connection)
16:12:18  * tmaximinijoined
16:13:27  * rajan123quit (Quit: rajan123)
16:14:25  * tmaximin_joined
16:14:31  * tmaximiniquit (Read error: Connection reset by peer)
16:20:33  * SuperHansquit (Remote host closed the connection)
16:21:28  * rajan123joined
16:59:37  * tmaximin_quit (Remote host closed the connection)
17:09:15  * TheThing_joined
17:09:15  * TheThingquit (Read error: Connection reset by peer)
17:34:09  * rajan123quit (Quit: rajan123)
17:56:28  * tmaximinijoined
18:10:07  * tmaximin_joined
18:12:33  * tmaximiniquit (Ping timeout: 245 seconds)
18:43:39  * tmaximinijoined
18:46:18  * tmaximin_quit (Ping timeout: 250 seconds)
18:57:33  * frankdreyjoined
19:39:06  * tmaximin_joined
19:42:22  * tmaximiniquit (Ping timeout: 265 seconds)
20:04:38  * tmaximinijoined
20:07:43  * tmaximin_quit (Ping timeout: 256 seconds)
20:09:45  * mezodquit (Remote host closed the connection)
20:18:48  * SuperHansjoined
20:22:48  * frankdreyquit (Quit: My MacBook has gone to sleep. ZZZzzz…)
20:36:34  * mezodjoined
20:37:36  * SuperHansquit (Remote host closed the connection)
20:57:32  * tmaximiniquit (Remote host closed the connection)
21:07:41  * SuperHansjoined
21:16:12  * SuperHansquit (Remote host closed the connection)
21:19:38  * s34njoined
21:22:08  * bobby_barkerjoined
21:32:56  * frankdreyjoined
22:08:39  * bobby_barkerquit (Ping timeout: 260 seconds)
22:20:19  * mezodquit (Remote host closed the connection)
22:55:23  <s34n>using koa2 from koa-generator to create scaffolding, I get an app.js that includes middleware with an async function signature
22:56:18  <s34n>but when I require a route that has an async function handler, node chokes on the async signature
23:04:18  <s34n>node swallows the async function in app.js just fine, but chokes on my handler. What magic is app.js using to get node to accept its async function middleware?