Skip to content

Commit

Permalink
Merge a70ae55 into 4e9b19b
Browse files Browse the repository at this point in the history
  • Loading branch information
mvomiero authored Mar 27, 2024
2 parents 4e9b19b + a70ae55 commit 0e14753
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions cli/src/main/package/bin/ide
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
#!/usr/bin/env bash

# immediately exit on errors
set -e

# Check if arguments are given
if [ -n "${1}" ]; then
# Call native ideasy with user-provided arguments
ideasy "$@"
# Call native ideasy with user-provided arguments
ideasy "$@"
return_code=$?
if [ $return_code -ne 0 ]; then # Check if ideasy exit code is not equal to 0
echo -e "\n\033[91mError: IDEasy failed with exit code $return_code \033[91m" >&2 # Print error message to stderr
return $return_code # Return the same error code as ideasy
fi

ide_env=
Expand Down

0 comments on commit 0e14753

Please sign in to comment.