update error.cpp