When attemp to change dir fails no error is shown. Neither error code