use better error message

Change-Id: Ib47b200d6d8bdce97613143a97c5ebc38154f023
Reviewed-on: http://review.couchbase.org/24923
Tested-by: buildbot <build@couchbase.com>
Reviewed-by: Pavel Paulau <pavel.paulau@gmail.com>