Fixed wrong call to erlang:error thanks to dialyzer
Fixed wrong call to erlang:error thanks to dialyzer

This is in code that's not supposed to be called at all (and thus
raises error). But it's good to be dialyzer clean. Somehow we were
missing that warning from dialyzer all this time.

Change-Id: If2f223e9d3bf8ee8e3dbc43ed7e6e6732e07cdaf
Reviewed-on: http://review.couchbase.org/42631
Tested-by: Aliaksey Kandratsenka <340b8e09ca65cd3fc686427fcfed17e87eaf61e2@gmail.com>
Reviewed-by: Aliaksey Artamonau <3c875bcfb3adf2a65b2ae7686ca921e6c9433147@gmail.com>

ceejatec/ns_server,ceejatec/ns_server,nimishzynga/ns_server,membase/ns_server,mschoch/ns_server,ceejatec/ns_server,nimishzynga/ns_server,mschoch/ns_server,membase/ns_server,membase/ns_server,membase/ns_server,mschoch/ns_server,ceejatec/ns_server,ceejatec/ns_server,membase/ns_server,mschoch/ns_server,nimishzynga/ns_server,nimishzynga/ns_server,nimishzynga/ns_server,ceejatec/ns_server,mschoch/ns_server,nimishzynga/ns_server,membase/ns_server,mschoch/ns_server