basho / cuttlefish

never lose your childlike sense of wonder baby cuttlefish, promise me?
Apache License 2.0
205 stars 124 forks source link

Don't match return value when loading lager #125

Closed rzezeski closed 10 years ago

rzezeski commented 10 years ago

Lager may already be loaded so don't match against 'ok'.

I ran into this issue trying to run riak test. Here was output from trying to manually run chkconfig:

# /root/yz-verify/rt/riak_yz/dev/dev1/bin/riak chkconfig
Error generating config with cuttlefish

That doesn't say anything useful so then I ran riak config effective

# /root/yz-verify/rt/riak_yz/dev/dev1/bin/riak config effective
escript: exception error: no match of right hand side value {error,
                                                    {already_loaded,lager}}
  in function  cuttlefish_escript:main/1 (src/cuttlefish_escript.erl, line 69)
  in call from escript:run/2 (escript.erl, line 747)
  in call from escript:start/1 (escript.erl, line 277)
  in call from init:start_it/1 
  in call from init:start_em/1 
Vagabond commented 10 years ago

+1, my bad.