From 2d3776df6e966c262e54fdf9eae2281ee6a9b5c0 Mon Sep 17 00:00:00 2001 From: mischa Date: Sun, 5 Nov 2023 13:07:49 +0100 Subject: [PATCH] Edgegap Plugin: detailed error message & solution for 'project not found' --- Assets/Mirror/Hosting/Edgegap/Editor/EdgegapWindow.cs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Assets/Mirror/Hosting/Edgegap/Editor/EdgegapWindow.cs b/Assets/Mirror/Hosting/Edgegap/Editor/EdgegapWindow.cs index f9c4b45e6..2cee55100 100755 --- a/Assets/Mirror/Hosting/Edgegap/Editor/EdgegapWindow.cs +++ b/Assets/Mirror/Hosting/Edgegap/Editor/EdgegapWindow.cs @@ -9,6 +9,7 @@ using System.Net; using System.Text; using System; +using System.Text.RegularExpressions; using System.Threading.Tasks; using IO.Swagger.Model; using UnityEditor.Build.Reporting; @@ -385,6 +386,13 @@ async void BuildAndPushServer() return; } + // project not found? + if (Regex.IsMatch(error, @".*project .* not found.*", RegexOptions.IgnoreCase)) + { + onError($"{error}\nTo solve this, make sure that Image Repository is 'project/game' where 'project' is from the Container Registry page on the Edgegap website."); + return; + } + // otherwise show generic error message onError($"Unable to push docker image to registry. Please make sure you're logged in to {registry} and check the following error:\n\n{error}"); return;