According to following case https://github.com/ctf/puppet-pbis/issues/6#issuecomment-45116523 the fail function throws an error.