add src/error.h for compatibility reason