Add option for console to auto visible on receiving error.
Refactor editor to use the enhancement.