Added error message to run_command