Updated output string when success and error