diff --git a/action.yml b/action.yml index cdcf086..00acf83 100644 --- a/action.yml +++ b/action.yml @@ -237,7 +237,7 @@ runs: } try { - if (options.key && patchExplained === null && patch.type !== "simple" && logError.message !== "debounce" && !logError.message.includes("maximum context length")) { + if (options.key && patchExplained === null && patch.type !== "simple" && logError.message !== "debounce" && !logError.message?.includes("maximum context length")) { patchExplained = patch.watermark+"\n\n"+`logError ${logError.message}`; }