added warning code to error.cc