Skip to content

Commit

Permalink
Added error message
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Robsahm committed Nov 30, 2016
1 parent 6f244a7 commit 129c27b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
const ws = require("ws");
const url = require("url");

if(!process.env.CONFIG_REQUEST_URL || !process.env.CONFIG_REQUEST_INTERVAL) {
console.error("Environment variables CONFIG_REQUEST_URL and CONFIG_REQUEST_INTERVAL must be set");
}

const requestConfig = (webSocket, environment) => {
webSocket.send(environment);
};
Expand Down

0 comments on commit 129c27b

Please sign in to comment.