Added error wrapper function in cli.go for easier error handling.