Split app and release discovery and format_error fix