Skip to content

Commit

Permalink
refactor: better error message
Browse files Browse the repository at this point in the history
  • Loading branch information
MrWeez committed Jun 6, 2024
1 parent 33eb066 commit 68b91d9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,5 @@ Homestead.yaml
# Ignore installation logs and locks
public/install/logs.txt
install.lock
/bin/.CHdeps.lock
public/install/logs/installer.log
2 changes: 1 addition & 1 deletion bin/ctrlhelper.sh
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ fi
set_cpgg_dir

# Moving to the CtrlPanel directory
cd "${cpgg_dir:-$DEFAULT_DIR}" || { echo " ERROR: An error occurred while trying to switch to the working directory. Please try to run the script again, if the error persists, inform the developers!"; exit 1; }
cd "${cpgg_dir:-$DEFAULT_DIR}" || { echo " ERROR: An error occurred while trying to switch to the working directory. Please try to run the script again, if the error persists, create support forum post on CtrlPanel's Discord server!"; exit 1; }

# Main functions
if [ "$cli_mode" == "false" ]; then
Expand Down

0 comments on commit 68b91d9

Please sign in to comment.