00:45:09  * mhilmijoined
01:57:30  * rfengquit (Quit: rfeng)
03:01:39  * mhilmiquit (Ping timeout: 244 seconds)
03:02:57  * mhilmijoined
04:47:02  * mhilmiquit (Ping timeout: 243 seconds)
04:49:10  * mhilmijoined
06:17:14  * rfengjoined
06:41:32  * ijrothjoined
07:12:10  * bajtosjoined
07:40:43  * rfengquit (Quit: rfeng)
07:45:10  * octetcloudquit (Ping timeout: 264 seconds)
07:45:17  * Aswebb_joined
07:47:42  * Aswebb_quit (Remote host closed the connection)
08:39:46  * rmgquit (Remote host closed the connection)
08:49:00  * Aswebb_joined
10:18:19  * Celrenheitjoined
10:28:00  * bajtosquit (Quit: bajtos)
10:28:14  * rmgjoined
10:32:57  * rmgquit (Ping timeout: 256 seconds)
11:22:12  * Aswebb_quit (Remote host closed the connection)
11:39:42  * Aswebb_joined
11:48:37  * Aswebb_quit (Remote host closed the connection)
12:03:45  * Aswebb_joined
12:30:40  * Celrenheitquit (Quit: Textual IRC Client: www.textualapp.com)
12:32:03  * Aswebb_quit (Ping timeout: 245 seconds)
12:38:35  * Aswebb_joined
13:12:27  * bajtosjoined
13:18:22  * rmgjoined
13:22:53  * rmgquit (Ping timeout: 245 seconds)
15:42:02  <cnaccio86>I'm hoping someone can help me. Why is the following code within my remote method not ending the method, and still running the rest of the code?
15:42:13  <cnaccio86> switch (true) {
15:42:13  <cnaccio86> case _.isObject(creditReport):
15:42:13  <cnaccio86> cb(new Error("Expecting object parameter, but got " + typeof(creditReport)));
15:42:13  <cnaccio86> break;
15:42:13  <cnaccio86> case _.isEmpty(creditReport.pdfFileName):
15:42:14  <cnaccio86> cb(new Error("Parameter creditReport.pdfFileName is empty."));
15:42:14  <cnaccio86> break;
15:42:15  <cnaccio86> }
15:42:15  <cnaccio86> console.log("I'M STILL GOING!");
15:42:40  <cnaccio86>When the callback is executed with the error shouldn't it stop executing the remote method at that point?
15:55:33  <aars>Why are you using a switch statement?
15:57:16  <aars>But, this would mean that both cases are not 'true'. Try console.log'ing the output of your _.isObject() and _.isEmpty() statements.
16:07:31  * ijrothquit (Quit: Leaving.)
16:18:52  * bajtosquit (Quit: bajtos)
16:45:04  * rfengjoined
16:57:07  * rmgjoined
16:59:09  * bajtosjoined
17:00:16  <bajtos>cnaccio86: no, callback executed with an error does not stop execution
17:00:29  <bajtos>you need to do `return cb(new Error(...))`
17:01:18  <aars>bajtos: good point/catch. That's a sign that my workday is done :)
17:04:38  * rfengquit (Quit: rfeng)
17:04:55  * rfengjoined
17:09:46  * ijrothjoined
17:17:57  * rfengquit (Ping timeout: 244 seconds)
17:21:48  * octetcloudjoined
19:05:32  * bajtosquit (Quit: bajtos)
19:17:26  * bajtosjoined
19:21:59  * bajtosquit (Ping timeout: 264 seconds)
19:57:22  * bajtosjoined
20:01:00  * bajtosquit (Client Quit)
20:03:18  * ijrothquit (Quit: Leaving.)
21:00:53  * ijrothjoined
21:53:52  * bobmcwquit (Remote host closed the connection)
23:32:50  * Aswebb_quit (Remote host closed the connection)
23:33:38  * Aswebb__joined
23:34:21  * Aswebb__quit (Remote host closed the connection)