Return a structured Error from command execution rather than a string