mirror of
https://github.com/kemko/nomad.git
synced 2026-01-06 02:15:43 +03:00
comment
This commit is contained in:
@@ -2503,6 +2503,8 @@ func NewTaskEvent(event string) *TaskEvent {
|
||||
}
|
||||
}
|
||||
|
||||
// SetSetupError is used to store an error that occured while setting up the
|
||||
// task
|
||||
func (e *TaskEvent) SetSetupError(err error) *TaskEvent {
|
||||
if err != nil {
|
||||
e.SetupError = err.Error()
|
||||
|
||||
Reference in New Issue
Block a user