Kaynağa Gözat

Fix undefined and unused variables

Forgot to save the latest version...
Herman Slatman 3 yıl önce
ebeveyn
işleme
6d2d21e989
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  1. 1 1
      scep/api/api.go

+ 1 - 1
scep/api/api.go

@@ -336,7 +336,7 @@ func PKIOperation(ctx context.Context, req request) (Response, error) {
 		// default to ERROR_INTERNAL_ERROR: https://learn.microsoft.com/en-us/openspecs/windows_protocols/ms-erref/18d8fbe8-a967-4f1c-ae50-99ca8e491d2d
 		errorCode := 0x0000054F
 		errorDescription := err.Error()
-		if notifyErr := auth.NotifyFailure(ctx, csr, transactionID); notifyErr != nil {
+		if notifyErr := auth.NotifyFailure(ctx, csr, transactionID, errorCode, errorDescription); notifyErr != nil {
 			// TODO(hs): ignore this error case? It's not critical if the notification fails; but logging it might be good
 			_ = notifyErr
 		}