diff options
| author | Michael Williamson <mike@zwobble.org> | 2016-04-30 16:53:16 +0100 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2016-04-30 16:53:16 +0100 |
| commit | d71b9ef7b2ed7d72df132b5e38448fbbac7036be (patch) | |
| tree | b872d6a4aeac5f043a61bb0a856ec85e202469a3 /dotnet/Mammoth/Couscous/HorribleHacks.cs | |
| parent | ff98a9a2804d5e7c042d6bb400cd9265cf00fa85 (diff) | |
Produce nicer error messages in C#
Diffstat (limited to 'dotnet/Mammoth/Couscous/HorribleHacks.cs')
| -rw-r--r-- | dotnet/Mammoth/Couscous/HorribleHacks.cs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/dotnet/Mammoth/Couscous/HorribleHacks.cs b/dotnet/Mammoth/Couscous/HorribleHacks.cs index 9f1ac30..c97dc0a 100644 --- a/dotnet/Mammoth/Couscous/HorribleHacks.cs +++ b/dotnet/Mammoth/Couscous/HorribleHacks.cs @@ -26,5 +26,9 @@ namespace Mammoth.Couscous { internal static bool equals(this TokenType first, TokenType second) { return first == second; } + + internal static string getMessage(this System.Exception exception) { + return exception.Message; + } } } |
