@@ -3,30 +3,29 @@ var request = require("request");
33exports . serviceName = "Flowdock" ;
44
55exports . author = {
6- name : "Joel Moss" ,
7- 8- github : "joelmoss" ,
9- twitter : "joelmoss"
6+ name : "Joel Moss" ,
7+ 8+ github : "joelmoss" ,
9+ twitter : "joelmoss"
1010} ;
1111
1212exports . onError = function ( error , settings , done ) {
13-
14- request ( {
15- url : "https://api.flowdock.com/v1/messages/team_inbox/" + settings . flow_api_token ,
16- headers : {
17- "Content-Type" : "application/json" ,
18- "User-Agent" : "Errorception Notifications"
19- } ,
20- method : "post" ,
21- body : JSON . stringify ( {
22- source : "Errorception" ,
23- from_address :
"[email protected] " , 24- subject : "Errorception found an error!" ,
25- content : "Errorception found an error! \"" + error . message + "\" in "
26- + ( error . isInline ?( "an inline script on " + error . page ) :error . scriptPath )
27- + ". Details here: " + error . webUrl ,
28- link : error . webUrl
29- } ) ,
30- timeout : 10000
31- } , done ) ;
13+ request ( {
14+ url : "https://api.flowdock.com/v1/messages/team_inbox/" + settings . flow_api_token ,
15+ headers : {
16+ "Content-Type" : "application/json" ,
17+ "User-Agent" : "Errorception Notifications"
18+ } ,
19+ method : "post" ,
20+ body : JSON . stringify ( {
21+ source : "Errorception" ,
22+ from_address :
"[email protected] " , 23+ subject : "Errorception found an error!" ,
24+ content : "Errorception found an error! \"" + error . message + "\" in "
25+ + ( error . isInline ?( "an inline script on " + error . page ) :error . scriptPath )
26+ + ". Details here: " + error . webUrl ,
27+ link : error . webUrl
28+ } ) ,
29+ timeout : 10000
30+ } , done ) ;
3231} ;
0 commit comments