mojo: Simplify error handling and debug msg from backend to frontend.

Authored by mpyne on May 11 2020, 1:15 AM.