Clean build error messages.
Show error page if fail to build.
Trim error messages to add linebreak.
Capture app's last error.
Test display app panics and runtime errors.