anchor.diff:              ErlProps = [riak_kv_wm_utils:erlify_bucket_prop(P) || P <- Props],
               bucket_type_print_update_result(Type, riak_core_bucket_type:update(Type, ErlProps));
           _ ->
  -            io:setopts([{encoding, unicode}]),
               io:format("Cannot create bucket type ~ts: no props field found in json~n", [Type]),
               error
       end;
   bucket_type_update(Type, _) ->
  -    io:setopts([{encoding, unicode}]),
       io:format("Cannot update bucket type: ~ts: invalid json~n", [Type]),
       error.
   
   bucket_type_print_update_result(Type, ok) ->
  -    io:setopts([{encoding, unicode}]),
       io:format("~ts updated~n", [Type]);
   bucket_type_print_update_result(Type, {error, Reason}) ->
  -    io:setopts([{encoding, unicode}]),
       io:format("Error updating bucket type ~ts: ~p~n", [Type, Reason]),
       error.
   
  
positive.code:     bucket_type_print_reset_result(Type, riak_core_bucket_type:reset(Type)).
  
  bucket_type_print_reset_result(Type, ok) ->
      io:setopts([{encoding, unicode}]),
      io:format("~ts reset~n", [Type]);
  bucket_type_print_reset_result(Type, {error, Reason}) ->
      io:setopts([{encoding, unicode}]),
      io:format("Error updating bucket type ~ts: ~p~n", [Type, Reason]),
      error.
  
  
negative.code:     riak_core_claimant:get_bucket_type(Type, undefined, false).
  
  bucket_type_print_status(Type, undefined) ->
      io:format("~ts is not an existing bucket type~n", [Type]);
  bucket_type_print_status(Type, created) ->
      io:format("~ts has been created but cannot be activated yet~n", [Type]);
  bucket_type_print_status(Type, ready) ->
      io:format("~ts has been created and may be activated~n", [Type]);
  bucket_type_print_status(Type, active) ->
      io:format("~ts is active~n", [Type]).
  
  bucket_type_print_props(undefined) ->
  