fixed bug in displaying error messages and output in app_editor

Ignore-this: f990be2955e037c47d8325a0c8859165

darcs-hash:20140407181941-c21fe-b3335cc04de458347260c525991de6082d1a371a