This should probably just print the error message and then exit, rather than raising, which will trigger a generic error message. You can see this pattern used in lots of other plugins like the `user show` plugin.