better error handling in editor