mirror of
https://github.com/captbaritone/webamp.git
synced 2026-01-24 02:36:00 +00:00
Throw explicit error when we can't find a skin.
This commit is contained in:
parent
a3c073d60e
commit
0aedeeda16
1 changed files with 5 additions and 1 deletions
|
|
@ -2,7 +2,11 @@ const { getSkinToReview } = require("../../s3");
|
|||
const Utils = require("../utils");
|
||||
|
||||
async function reviewSkin(message) {
|
||||
const { md5 } = await getSkinToReview();
|
||||
const skin = await getSkinToReview();
|
||||
if(skin == null) {
|
||||
throw new Error("No skins to review");
|
||||
}
|
||||
const {md5, filename} = skin;
|
||||
await Utils.postSkin({
|
||||
md5,
|
||||
title: filename => `Review: ${filename}`,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue