Changed editor error management to new error system

Closes #862
Please remove debug output