explain this? If your trying to pass an error you must create an error object: new Error('no calendar');

Also why do you need a null argument? the second argument would be undefined in this case here anyway.