mirror of
https://github.com/certd/certd.git
synced 2026-04-23 19:57:27 +08:00
chore: publish 优化
This commit is contained in:
@@ -164,10 +164,9 @@ async function publishToAtomgit() {
|
||||
console.log("publishToAtomgit success")
|
||||
}catch(error){
|
||||
if (error?.response?.data){
|
||||
console.log("publishToAtomgit error:",error.response.data)
|
||||
}else{
|
||||
console.log("publishToAtomgit error:",error)
|
||||
throw new Error("publishToAtomgit error:",error.response.data)
|
||||
}
|
||||
throw new Error("publishToAtomgit error:",error)
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -34,10 +34,9 @@ async function publishToGitee() {
|
||||
console.log("publishToGitee success")
|
||||
} catch (error) {
|
||||
if (error?.response?.data){
|
||||
console.log("publishToGitee error:",error.response.data)
|
||||
}else{
|
||||
console.log("publishToGitee error:",error)
|
||||
throw new Error("publishToGitee error:",error.response.data)
|
||||
}
|
||||
throw new Error("publishToGitee error:",error)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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