summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLinus Nordberg <linus@nordberg.se>2014-05-05 00:54:30 +0200
committerLinus Nordberg <linus@nordberg.se>2014-05-05 00:54:30 +0200
commit2fa51dcc2ef903e4247470f366f4463b05036838 (patch)
tree0d1335c121469df9efafa3064e2d4b0b95c8a9ef /src
parent1ad53bea32744fe0ee3ca349c9b5c712c980f398 (diff)
Help user understand that we need jiffy.
We should make this an application sooner rather than later.
Diffstat (limited to 'src')
-rw-r--r--src/https_server.erl4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/https_server.erl b/src/https_server.erl
index a0b81b4..ccbc2e7 100644
--- a/src/https_server.erl
+++ b/src/https_server.erl
@@ -3,6 +3,10 @@
start() ->
io:format("Starting https server~n"),
+ case code:ensure_loaded(jiffy) of
+ {module, jiffy} -> ok;
+ _ -> io:format("missing jiffy -- please add to load path~n")
+ end,
%% TODO: put this in httpd_props.conf and use that at erlang
%% start. inets:start(httpd, {proplist_file, "httpd_props.conf"}).
ServerRoot = "/home/linus/usr/src/ct/ctls/webroot",