Update server/notification-providers/onechat.js

Co-authored-by: Frank Elsinga <frank@elsinga.de>
This commit is contained in:
Pargorn Ruasijan 2025-01-25 15:58:40 +07:00 committed by GitHub
parent e3aaceef3f
commit 46e3daef26
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -64,9 +64,7 @@ Time (${heartbeatJSON["timezone"]}): ${heartbeatJSON["localDateTime"]}`,
"Unknown API error occurred.";
throw new Error(`OneChat API Error: ${errorMessage}`);
} else {
throw new Error(
`Network or unexpected error: ${error.message}`
);
this.throwGeneralAxiosError(error);
}
}
}