put error message in a code box