The error would go like this e.g.:
But i don't get it; the 'not enough wood' text is something the default wc3 machine has. Why would you need it?
Custom script: call DebugError ( GetOwningPlayer(GetTriggerUnit()), "|c00FFFF00Not enough wood.|r")