Hi,
sometimes in my Log this error appears. I think i switch a device via an HTTP Request. Can somebody improve that function to print the “device” what doesn´t have that action?

08:03:31.685 [pimatic] error: device hasn't that action
08:03:31.740 [pimatic] debug: Error: device hasn't that action
08:03:31.740 [pimatic] debug:>    at DeviceManager.callDeviceActionReq (/home/pi/pimatic-app/node_modules/pimatic/lib/devices.coffee:1576:19)
08:03:31.740 [pimatic] debug:>    at DeviceManager.callDeviceActionReq (/home/pi/pimatic-app/node_modules/pimatic/lib/devices.coffee:10:57)
08:03:31.740 [pimatic] debug:>    at /home/pi/pimatic-app/node_modules/pimatic/node_modules/decl-api/index.js:274:34
08:03:31.740 [pimatic] debug:>    at tryCatcher (/home/pi/pimatic-app/node_modules/pimatic/node_modules/bluebird/js/release/util.js:16:23)
08:03:31.740 [pimatic] debug:>    at Function.Promise.attempt.Promise.try (/home/pi/pimatic-app/node_modules/pimatic/node_modules/bluebird/js/release/method.js:39:29)
08:03:31.740 [pimatic] debug:>    at callActionFromReq (/home/pi/pimatic-app/node_modules/pimatic/node_modules/decl-api/index.js:272:28)
08:03:31.740 [pimatic] debug:>    at /home/pi/pimatic-app/node_modules/pimatic/node_modules/decl-api/index.js:364:16
08:03:31.740 [pimatic] debug:>    at tryCatcher (/home/pi/pimatic-app/node_modules/pimatic/node_modules/bluebird/js/release/util.js:16:23)
08:03:31.740 [pimatic] debug:>    at Function.Promise.attempt.Promise.try (/home/pi/pimatic-app/node_modules/pimatic/node_modules/bluebird/js/release/method.js:39:29)
08:03:31.740 [pimatic] debug:>    at callActionFromReqAndRespond (/home/pi/pimatic-app/node_modules/pimatic/node_modules/decl-api/index.js:362:26)
08:03:31.740 [pimatic] debug:>    at /home/pi/pimatic-app/node_modules/pimatic/node_modules/decl-api/index.js:445:20
08:03:31.740 [pimatic] debug:>    at Layer.handle [as handle_request] (/home/pi/pimatic-app/node_modules/pimatic/node_modules/express/lib/router/layer.js:95:5)
08:03:31.740 [pimatic] debug:>    at next (/home/pi/pimatic-app/node_modules/pimatic/node_modules/express/lib/router/route.js:131:13)
08:03:31.740 [pimatic] debug:>    at Route.dispatch (/home/pi/pimatic-app/node_modules/pimatic/node_modules/express/lib/router/route.js:112:3)
08:03:31.740 [pimatic] debug:>    at Layer.handle [as handle_request] (/home/pi/pimatic-app/node_modules/pimatic/node_modules/express/lib/router/layer.js:95:5)
08:03:31.740 [pimatic] debug:>    at /home/pi/pimatic-app/node_modules/pimatic/node_modules/express/lib/router/index.js:277:22
08:03:31.740 [pimatic] debug:>    at param (/home/pi/pimatic-app/node_modules/pimatic/node_modules/express/lib/router/index.js:349:14)
08:03:31.740 [pimatic] debug:>    at param (/home/pi/pimatic-app/node_modules/pimatic/node_modules/express/lib/router/index.js:365:14)
08:03:31.740 [pimatic] debug:>    at param (/home/pi/pimatic-app/node_modules/pimatic/node_modules/express/lib/router/index.js:365:14)
08:03:31.740 [pimatic] debug:>    at Function.process_params (/home/pi/pimatic-app/node_modules/pimatic/node_modules/express/lib/router/index.js:410:3)
08:03:31.740 [pimatic] debug:>    at next (/home/pi/pimatic-app/node_modules/pimatic/node_modules/express/lib/router/index.js:271:10)
08:03:31.740 [pimatic] debug:>    at next (/home/pi/pimatic-app/node_modules/pimatic/node_modules/express/lib/router/route.js:121:14)
08:03:31.740 [pimatic] debug:>    at /home/pi/pimatic-app/node_modules/pimatic/lib/framework.coffee:981:19
08:03:31.740 [pimatic] debug:>    at Layer.handle [as handle_request] (/home/pi/pimatic-app/node_modules/pimatic/node_modules/express/lib/router/layer.js:95:5)
08:03:31.740 [pimatic] debug:>    at next (/home/pi/pimatic-app/node_modules/pimatic/node_modules/express/lib/router/route.js:131:13)
08:03:31.740 [pimatic] debug:>    at Route.dispatch (/home/pi/pimatic-app/node_modules/pimatic/node_modules/express/lib/router/route.js:112:3)
08:03:31.740 [pimatic] debug:>    at Layer.handle [as handle_request] (/home/pi/pimatic-app/node_modules/pimatic/node_modules/express/lib/router/layer.js:95:5)
08:03:31.740 [pimatic] debug:>    at /home/pi/pimatic-app/node_modules/pimatic/node_modules/express/lib/router/index.js:277:22
08:03:31.740 [pimatic] debug:>    at param (/home/pi/pimatic-app/node_modules/pimatic/node_modules/express/lib/router/index.js:349:14)
08:03:31.740 [pimatic] debug:>    at param (/home/pi/pimatic-app/node_modules/pimatic/node_modules/express/lib/router/index.js:365:14)
08:03:31.740 [pimatic] debug:>    at param (/home/pi/pimatic-app/node_modules/pimatic/node_modules/express/lib/router/index.js:365:14)
08:03:31.740 [pimatic] debug:>    at Function.process_params (/home/pi/pimatic-app/node_modules/pimatic/node_modules/express/lib/router/index.js:410:3)
08:03:31.740 [pimatic] debug:>    at next (/home/pi/pimatic-app/node_modules/pimatic/node_modules/express/lib/router/index.js:271:10)
08:03:31.740 [pimatic] debug:>    at /home/pi/pimatic-app/node_modules/pimatic/lib/framework.coffee:353:11
08:03:31.740 [pimatic] debug:>    at Layer.handle [as handle_request] (/home/pi/pimatic-app/node_modules/pimatic/node_modules/express/lib/router/layer.js:95:5)
08:03:31.740 [pimatic] debug:>    at trim_prefix (/home/pi/pimatic-app/node_modules/pimatic/node_modules/express/lib/router/index.js:312:13)
08:03:31.740 [pimatic] debug:>    at /home/pi/pimatic-app/node_modules/pimatic/node_modules/express/lib/router/index.js:280:7
08:03:31.740 [pimatic] debug:>    at Function.process_params (/home/pi/pimatic-app/node_modules/pimatic/node_modules/express/lib/router/index.js:330:12)
08:03:31.740 [pimatic] debug:>    at next (/home/pi/pimatic-app/node_modules/pimatic/node_modules/express/lib/router/index.js:271:10)
08:03:31.740 [pimatic] debug:>    at _cookieSession (/home/pi/pimatic-app/node_modules/pimatic/node_modules/cookie-session/index.js:124:5)
08:03:31.740 [pimatic] debug:>    at Layer.handle [as handle_request] (/home/pi/pimatic-app/node_modules/pimatic/node_modules/express/lib/router/layer.js:95:5)
08:03:31.740 [pimatic] debug:>    at trim_prefix (/home/pi/pimatic-app/node_modules/pimatic/node_modules/express/lib/router/index.js:312:13)
08:03:31.740 [pimatic] debug:>    at /home/pi/pimatic-app/node_modules/pimatic/node_modules/express/lib/router/index.js:280:7
08:03:31.740 [pimatic] debug:>    at Function.process_params (/home/pi/pimatic-app/node_modules/pimatic/node_modules/express/lib/router/index.js:330:12)
08:03:31.740 [pimatic] debug:>    at next (/home/pi/pimatic-app/node_modules/pimatic/node_modules/express/lib/router/index.js:271:10)
08:03:31.740 [pimatic] debug:>    at jsonParser (/home/pi/pimatic-app/node_modules/pimatic/node_modules/body-parser/lib/types/json.js:103:7)
08:03:31.740 [pimatic] debug:>    at Layer.handle [as handle_request] (/home/pi/pimatic-app/node_modules/pimatic/node_modules/express/lib/router/layer.js:95:5)
08:03:31.740 [pimatic] debug:>    at trim_prefix (/home/pi/pimatic-app/node_modules/pimatic/node_modules/express/lib/router/index.js:312:13)
08:03:31.740 [pimatic] debug:>    at /home/pi/pimatic-app/node_modules/pimatic/node_modules/express/lib/router/index.js:280:7
08:03:31.740 [pimatic] debug:>    at Function.process_params (/home/pi/pimatic-app/node_modules/pimatic/node_modules/express/lib/router/index.js:330:12)
08:03:31.740 [pimatic] debug:>    at next (/home/pi/pimatic-app/node_modules/pimatic/node_modules/express/lib/router/index.js:271:10)
08:03:31.740 [pimatic] debug:>    at urlencodedParser (/home/pi/pimatic-app/node_modules/pimatic/node_modules/body-parser/lib/types/urlencoded.js:91:7)
08:03:31.740 [pimatic] debug:>    at Layer.handle [as handle_request] (/home/pi/pimatic-app/node_modules/pimatic/node_modules/express/lib/router/layer.js:95:5)
08:03:31.740 [pimatic] debug:>    at trim_prefix (/home/pi/pimatic-app/node_modules/pimatic/node_modules/express/lib/router/index.js:312:13)
08:03:31.740 [pimatic] debug:>    at /home/pi/pimatic-app/node_modules/pimatic/node_modules/express/lib/router/index.js:280:7
08:03:31.740 [pimatic] debug:>    at Function.process_params (/home/pi/pimatic-app/node_modules/pimatic/node_modules/express/lib/router/index.js:330:12)
08:03:31.740 [pimatic] debug:>    at next (/home/pi/pimatic-app/node_modules/pimatic/node_modules/express/lib/router/index.js:271:10)
08:03:31.740 [pimatic] debug:>    at cookieParser (/home/pi/pimatic-app/node_modules/pimatic/node_modules/cookie-parser/index.js:56:14)
08:03:31.740 [pimatic] debug:>    at Layer.handle [as handle_request] (/home/pi/pimatic-app/node_modules/pimatic/node_modules/express/lib/router/layer.js:95:5)
08:03:31.740 [pimatic] debug:>    at trim_prefix (/home/pi/pimatic-app/node_modules/pimatic/node_modules/express/lib/router/index.js:312:13)
08:03:31.740 [pimatic] debug:>    at /home/pi/pimatic-app/node_modules/pimatic/node_modules/express/lib/router/index.js:280:7
08:03:31.740 [pimatic] debug:>    at Function.process_params (/home/pi/pimatic-app/node_modules/pimatic/node_modules/express/lib/router/index.js:330:12)
08:03:31.740 [pimatic] debug:>    at next (/home/pi/pimatic-app/node_modules/pimatic/node_modules/express/lib/router/index.js:271:10)
08:03:31.740 [pimatic] debug:>    at /home/pi/pimatic-app/node_modules/pimatic/lib/framework.coffee:262:9
08:03:31.740 [pimatic] debug:>    at Layer.handle [as handle_request] (/home/pi/pimatic-app/node_modules/pimatic/node_modules/express/lib/router/layer.js:95:5)
08:03:31.740 [pimatic] debug:>    at trim_prefix (/home/pi/pimatic-app/node_modules/pimatic/node_modules/express/lib/router/index.js:312:13)
08:03:31.740 [pimatic] debug:>    at /home/pi/pimatic-app/node_modules/pimatic/node_modules/express/lib/router/index.js:280:7
08:03:31.740 [pimatic] debug:>    at Function.process_params (/home/pi/pimatic-app/node_modules/pimatic/node_modules/express/lib/router/index.js:330:12)
08:03:31.740 [pimatic] debug:>    at next (/home/pi/pimatic-app/node_modules/pimatic/node_modules/express/lib/router/index.js:271:10)
08:03:31.740 [pimatic] debug:>    at /home/pi/pimatic-app/node_modules/pimatic/node_modules/connect-timeout/index.js:69:5
08:03:31.740 [pimatic] debug:>    at Layer.handle [as handle_request] (/home/pi/pimatic-app/node_modules/pimatic/node_modules/express/lib/router/layer.js:95:5)
08:03:31.740 [pimatic] debug:>    at trim_prefix (/home/pi/pimatic-app/node_modules/pimatic/node_modules/express/lib/router/index.js:312:13)
08:03:31.740 [pimatic] debug:>    at /home/pi/pimatic-app/node_modules/pimatic/node_modules/express/lib/router/index.js:280:7
08:03:31.740 [pimatic] debug:>    at Function.process_params (/home/pi/pimatic-app/node_modules/pimatic/node_modules/express/lib/router/index.js:330:12)
08:03:31.740 [pimatic] debug:>    at next (/home/pi/pimatic-app/node_modules/pimatic/node_modules/express/lib/router/index.js:271:10)
08:03:31.740 [pimatic] debug:>    at expressInit (/home/pi/pimatic-app/node_modules/pimatic/node_modules/express/lib/middleware/init.js:33:5)
08:03:31.740 [pimatic] debug:>    at Layer.handle [as handle_request] (/home/pi/pimatic-app/node_modules/pimatic/node_modules/express/lib/router/layer.js:95:5)
08:03:31.740 [pimatic] debug:>    at trim_prefix (/home/pi/pimatic-app/node_modules/pimatic/node_modules/express/lib/router/index.js:312:13)
08:03:31.740 [pimatic] debug:>    at /home/pi/pimatic-app/node_modules/pimatic/node_modules/express/lib/router/index.js:280:7
08:03:31.740 [pimatic] debug:>    at Function.process_params (/home/pi/pimatic-app/node_modules/pimatic/node_modules/express/lib/router/index.js:330:12)
08:03:31.740 [pimatic] debug:>    at next (/home/pi/pimatic-app/node_modules/pimatic/node_modules/express/lib/router/index.js:271:10)
08:03:31.740 [pimatic] debug:>    at query (/home/pi/pimatic-app/node_modules/pimatic/node_modules/express/lib/middleware/query.js:44:5)
08:03:31.740 [pimatic] debug:>    at Layer.handle [as handle_request] (/home/pi/pimatic-app/node_modules/pimatic/node_modules/express/lib/router/layer.js:95:5)
08:03:31.740 [pimatic] debug:>    at trim_prefix (/home/pi/pimatic-app/node_modules/pimatic/node_modules/express/lib/router/index.js:312:13)
08:03:31.740 [pimatic] debug:>    at /home/pi/pimatic-app/node_modules/pimatic/node_modules/express/lib/router/index.js:280:7
08:03:31.740 [pimatic] debug:>    at Function.process_params (/home/pi/pimatic-app/node_modules/pimatic/node_modules/express/lib/router/index.js:330:12)
08:03:31.740 [pimatic] debug:>    at next (/home/pi/pimatic-app/node_modules/pimatic/node_modules/express/lib/router/index.js:271:10)
08:03:31.740 [pimatic] debug:>    at Function.handle (/home/pi/pimatic-app/node_modules/pimatic/node_modules/express/lib/router/index.js:176:3)
08:03:31.740 [pimatic] debug:>    at EventEmitter.handle (/home/pi/pimatic-app/node_modules/pimatic/node_modules/express/lib/application.js:173:10)
08:03:31.740 [pimatic] debug:>    at Server.app (/home/pi/pimatic-app/node_modules/pimatic/node_modules/express/lib/express.js:38:9)
08:03:31.740 [pimatic] debug:>    at emitTwo (events.js:87:13)
08:03:31.740 [pimatic] debug:>    at Server.emit (events.js:172:7)
08:03:31.740 [pimatic] debug:>    at HTTPParser.parserOnIncoming [as onIncoming] (_http_server.js:536:12)
08:03:31.740 [pimatic] debug:>    at HTTPParser.parserOnHeadersComplete (_http_common.js:103:23)