mirror of
https://github.com/certd/certd.git
synced 2026-04-14 20:40:53 +08:00
chore: publish 优化
This commit is contained in:
@@ -34,10 +34,9 @@ async function publishToGithub() {
|
||||
console.log("publishToGithub success")
|
||||
} catch (error) {
|
||||
if (error?.response?.data){
|
||||
console.log("publishToGithub error:",error.response.data)
|
||||
}else{
|
||||
console.log("publishToGithub error:",error)
|
||||
throw new Error("publishToGithub error:",error.response.data)
|
||||
}
|
||||
throw new Error("publishToGithub error:",error)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user