From 4a7e698ecad57703d047c49d81b8aac0ffa0b577 Mon Sep 17 00:00:00 2001 From: Simon Pilkington Date: Tue, 15 Aug 2023 14:37:49 +1000 Subject: [PATCH] Address issue where errorTypeAdditionalExtensions was not called on the error delegate. --- .../ServiceModelCodeGenerator+generateModelErrors.swift | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Sources/ServiceModelGenerate/ServiceModelCodeGenerator+generateModelErrors.swift b/Sources/ServiceModelGenerate/ServiceModelCodeGenerator+generateModelErrors.swift index 722111e..4c3d301 100644 --- a/Sources/ServiceModelGenerate/ServiceModelCodeGenerator+generateModelErrors.swift +++ b/Sources/ServiceModelGenerate/ServiceModelCodeGenerator+generateModelErrors.swift @@ -168,6 +168,8 @@ public extension ServiceModelCodeGenerator where TargetSupportType: ModelTargetS """) } + delegate.errorTypeAdditionalExtensions(fileBuilder: fileBuilder, errorTypes: sortedErrors, baseName: baseName) + if delegate.generateCustomStringConvertibleConformance && delegate.generateEncodableConformance { fileBuilder.appendEmptyLine()