diff options
| author | 2025-03-18 13:12:28 +0000 | |
|---|---|---|
| committer | 2025-03-18 13:12:28 +0000 | |
| commit | 8adda0dca4cb94be6a071e67b3e3c89a22375aca (patch) | |
| tree | e68839d6da2df39b3ba43a8665e44a9a98c6c16c /src/modules/m_codepage.cpp | |
| parent | Skip lines which are empty in mkheaders. (diff) | |
Add a formatting overload of the ModuleException constructor.
Diffstat (limited to 'src/modules/m_codepage.cpp')
| -rw-r--r-- | src/modules/m_codepage.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/modules/m_codepage.cpp b/src/modules/m_codepage.cpp index 5c187126a..9f45b91d0 100644 --- a/src/modules/m_codepage.cpp +++ b/src/modules/m_codepage.cpp @@ -389,12 +389,12 @@ public: break; case Codepage::AllowCharacterResult::NOT_VALID: - throw ModuleException(this, INSP_FORMAT("<cpchars> tag contains a forbidden character: {} at {}", - GetPrintable(pos), tag->source.str())); + throw ModuleException(this, "<cpchars> tag contains a forbidden character: {} at {}", + GetPrintable(pos), tag->source.str()); case Codepage::AllowCharacterResult::NOT_VALID_AT_FRONT: - throw ModuleException(this, INSP_FORMAT("<cpchars> tag contains a forbidden front character: {} at {}", - GetPrintable(pos), tag->source.str())); + throw ModuleException(this, "<cpchars> tag contains a forbidden front character: {} at {}", + GetPrintable(pos), tag->source.str()); } } } |
