Feroze Mohideen 2 лет назад
Родитель
Сommit
2e74abcb63
1 измененных файлов с 4 добавлено и 0 удалено
  1. 4 0
      internal/porter_app/notifications/porter_error/codes.go

+ 4 - 0
internal/porter_app/notifications/porter_error/codes.go

@@ -81,6 +81,10 @@ func ErrorCode(agentSummary, agentDetail string) PorterErrorCode {
 		return PorterErrorCode_MemoryLimitExceeded
 	}
 
+	if strings.Contains(agentSummary, "requested more memory than is available") {
+		return PorterErrorCode_MemoryLimitExceeded
+	}
+
 	if strings.Contains(agentSummary, "requesting too much memory and cannot scale up") {
 		return PorterErrorCode_MemoryLimitExceeded_ScaleUp
 	}