Skip to content

Commit 61fd9aa

Browse files
authored
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 <[email protected]>
1 parent 0483262 commit 61fd9aa

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

dist/platforms/ubuntu/activate.sh

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,14 @@ elif [[ -n "$UNITY_LICENSING_SERVER" ]]; then
6565
FLOATING_LICENSE=$(sed -n 2p <<< "$PARSEDFILE")
6666
FLOATING_LICENSE_TIMEOUT=$(sed -n 4p <<< "$PARSEDFILE")
6767

68-
echo "Acquired floating license: \"$FLOATING_LICENSE\" with timeout $FLOATING_LICENSE_TIMEOUT"
68+
if [[ -z "$FLOATING_LICENSE" || -z "$FLOATING_LICENSE_TIMEOUT" ]]; then
69+
echo "::error ::Failed to acquire floating license from Unity Licensing Server."
70+
echo "Check the activation log below for more details."
71+
cat license.txt
72+
else
73+
echo "Acquired floating license: \"$FLOATING_LICENSE\" with timeout $FLOATING_LICENSE_TIMEOUT"
74+
fi
75+
6976
# Store the exit code from the verify command
7077
else
7178
#

0 commit comments

Comments
 (0)