diff --git a/libavcodec/exr.c b/libavcodec/exr.c
index 5d716a6945037a202c535baaf4735241b447fffb..53c8f2b6562431a9de3f2d3a995e886fd7a1ef87 100644
--- a/libavcodec/exr.c
+++ b/libavcodec/exr.c
@@ -636,7 +636,7 @@ static int decode_frame(AVCodecContext *avctx,
         av_log_missing_feature(avctx, "32-bit unsigned int", 1);
         return AVERROR_PATCHWELCOME;
     default:
-        av_log(avctx, AV_LOG_ERROR, "Unknown pixel type : %d\n", s->pixel_type);
+        av_log(avctx, AV_LOG_ERROR, "Missing channel list\n");
         return AVERROR_INVALIDDATA;
     }