mirror of
https://github.com/itzg/docker-minecraft-server.git
synced 2026-05-29 23:25:24 +00:00
misc: Improved error log for missing Paper versions
This commit is contained in:
+1
-1
@@ -15,7 +15,7 @@ log "Downloading Paper $VANILLA_VERSION (build $PAPERBUILD) from $downloadUrl ..
|
|||||||
if ! curl -fsSL -o "$SERVER" $zarg "$downloadUrl" 2> /dev/null; then
|
if ! curl -fsSL -o "$SERVER" $zarg "$downloadUrl" 2> /dev/null; then
|
||||||
if versions=$(curl -fsSL https://papermc.io/api/v1/paper 2> /dev/null | jq -r '.versions | join(", ")'); then
|
if versions=$(curl -fsSL https://papermc.io/api/v1/paper 2> /dev/null | jq -r '.versions | join(", ")'); then
|
||||||
log "ERROR: ${VANILLA_VERSION} is not (yet) published by PaperMC"
|
log "ERROR: ${VANILLA_VERSION} is not (yet) published by PaperMC"
|
||||||
log " The following versions are available: "
|
log " Set VERSION to one of the following: "
|
||||||
log " ${versions}"
|
log " ${versions}"
|
||||||
else
|
else
|
||||||
log "ERROR: failed to contact PaperMC at https://papermc.io/api/v1/paper"
|
log "ERROR: failed to contact PaperMC at https://papermc.io/api/v1/paper"
|
||||||
|
|||||||
Reference in New Issue
Block a user