diff --git a/internal/nomad/sentry_debug_writer.go b/internal/nomad/sentry_debug_writer.go index 22534b9..497880e 100644 --- a/internal/nomad/sentry_debug_writer.go +++ b/internal/nomad/sentry_debug_writer.go @@ -4,7 +4,6 @@ import ( "context" "fmt" "github.com/getsentry/sentry-go" - "github.com/openHPI/poseidon/pkg/dto" "io" "regexp" "strconv" @@ -17,7 +16,7 @@ var ( // Format Parameters: 1. Debug Comment, 2. command. timeDebugMessageFormatStart = timeDebugMessageFormat + `; %s` // Format Parameters: 1. command, 2. Debug Comment. - timeDebugMessageFormatEnd = `%s; ` + dto.WrapBashCommand(`ec=$?; `+timeDebugMessageFormat+` && exit $ec`) + timeDebugMessageFormatEnd = `%s; ec=$?; ` + timeDebugMessageFormat + ` && exit $ec` timeDebugMessagePattern = regexp.MustCompile( `(?P.*)\x1EPoseidon (?P.+) (?P