if error happened when save component, just print it.