Skip to content
This repository was archived by the owner on Aug 14, 2026. It is now read-only.

Commit 3c357a3

Browse files
author
Destiny Saturday
authored
Update entrypoint.sh
Signed-off-by: Destiny Saturday <destiny@destinedcodes.com>
1 parent 777065c commit 3c357a3

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

entrypoint.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,13 @@
33
# Exit immediately if a command exits with a non-zero status.
44
set -e
55

6+
function handle_error {
7+
comment "Failed ❌" "#" && exit 1
8+
}
9+
10+
# Set up trap to handle errors
11+
trap 'handle_error' ERR
12+
613
comment() {
714
local status_message=$1
815
local preview_url=$2

0 commit comments

Comments
 (0)