MB-6895 Correct error processing for dev views

Change-Id: I51ad9fa63cc0b415cb992601c16c4b5c8f396c49
Reviewed-on: http://review.couchbase.org/24481
Reviewed-by: Filipe David Borba Manana <fdmanana@gmail.com>
Tested-by: Filipe David Borba Manana <fdmanana@gmail.com>
Merge remote-tracking branch 'origin/2.0.1'

Change-Id: I6385f79de20c7221fc50800d43e0719aa272f115