Added: the code when error.