Skip to content

Commit

Permalink
Output the latest error on the host if there is one
Browse files Browse the repository at this point in the history
  • Loading branch information
demyxco committed Feb 21, 2024
1 parent faa2056 commit f2a2813
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions host.sh
Expand Up @@ -172,8 +172,8 @@ demyx_host_error() {
DEMYX_HOST_ERROR="$(echo "$DEMYX_HOST_ERROR" | sed 's|\r$||g')"

if [[ "$DEMYX_HOST_ERROR" = true ]]; then
echo -e "\e[31m[ERROR]\e[39m New error(s): please run: demyx log main -e"
docker exec -t --user=root demyx bash -c "rm -f /demyx/tmp/demyx_log_error"
echo -e "\e[31m[ERROR]\e[39m An error has occured, view error log: demyx log main -e"
docker exec -t --user=root demyx bash -c "cat < /demyx/tmp/demyx_log_error && rm -f /demyx/tmp/demyx_log_error"
fi
}
#
Expand Down

0 comments on commit f2a2813

Please sign in to comment.