main function

void main()

Implementation

void main() async {
	runZonedGuarded(
		() => runApp(RoverControlDashboard()),
		(error, stack) async {
			if (error is SocketException && networkErrors.contains(error.osError!.errorCode)) {
				models.home.setMessage(severity: Severity.critical, text: "Network error, restart by clicking the network icon");
			} else {
        models.home.setMessage(severity: Severity.critical, text: "Dashboard error. See the logs");
        await services.files.logError(error, stack);
				Error.throwWithStackTrace(error, stack);
			}
		}
	);
}