Error and ok should be part of the action not part of the shell.