patch error debug message