From 61fd9aa167044adefc3ebda06a005e4312a9f897 Mon Sep 17 00:00:00 2001 From: Renner <160781066+Joao-Renner@users.noreply.github.com> Date: Fri, 1 Aug 2025 15:26:43 -0300 Subject: [PATCH] Provide descriptive activation information on error (#296) When trying to activate using Unity.Licensing.Client, any errors will provide no output. This change makes sure to provide context as to why the Unity.Licensing.Client has failed to retrieve a license. Signed-off-by: J. Renner --- dist/platforms/ubuntu/activate.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/dist/platforms/ubuntu/activate.sh b/dist/platforms/ubuntu/activate.sh index 5a42f1c..00fa8b3 100755 --- a/dist/platforms/ubuntu/activate.sh +++ b/dist/platforms/ubuntu/activate.sh @@ -65,7 +65,14 @@ elif [[ -n "$UNITY_LICENSING_SERVER" ]]; then FLOATING_LICENSE=$(sed -n 2p <<< "$PARSEDFILE") FLOATING_LICENSE_TIMEOUT=$(sed -n 4p <<< "$PARSEDFILE") - echo "Acquired floating license: \"$FLOATING_LICENSE\" with timeout $FLOATING_LICENSE_TIMEOUT" + if [[ -z "$FLOATING_LICENSE" || -z "$FLOATING_LICENSE_TIMEOUT" ]]; then + echo "::error ::Failed to acquire floating license from Unity Licensing Server." + echo "Check the activation log below for more details." + cat license.txt + else + echo "Acquired floating license: \"$FLOATING_LICENSE\" with timeout $FLOATING_LICENSE_TIMEOUT" + fi + # Store the exit code from the verify command else #