How to edit warning messages?