This is correct, although passing `Puppet::Error` is redundant.