m/cup
1
0
mirror of https://github.com/sergi0g/cup.git synced 2025-11-08 13:13:49 -05:00

fix: improve error handling in get_latest_tag when an image has no tags

This commit is mostly for debugging #68, but it's good to have more
error info just in case.
This commit is contained in:
Sergio
2025-03-16 18:33:19 +02:00
parent ef849b624f
commit e965380133

View File

@@ -205,7 +205,7 @@ pub async fn get_latest_tag(
}
}
}
None => unreachable!("{:?}", tags),
None => error!("Image {} has no remote version tags! Local tag: {}", image.reference, image.parts.tag),
}
}