Customize replys and add DroneCI config

This commit is contained in:
Oliver Traber 2023-02-25 20:48:04 +01:00
parent c89f288b7d
commit 5f96a210ad
Signed by: Bluemedia
GPG key ID: C0674B105057136C
10 changed files with 30 additions and 11 deletions

View file

@ -3,9 +3,9 @@ export default (error?: string | Error): string => {
if (error) {
if (typeof error === 'string') {
str = `🚫 ope: ${error}`;
str = `🚫 Error: ${error}`;
} else if (error instanceof Error) {
str = `🚫 ope: ${error.message}`;
str = `🚫 Error: ${error.message}`;
}
}