Add a common interface for producing better error messages
This commit is contained in:
parent
c13420f1d0
commit
3a2595be94
|
@ -2,3 +2,6 @@ type
|
|||
SerializationError* = object of CatchableError
|
||||
UnexpectedEofError* = object of SerializationError
|
||||
|
||||
method formatMsg*(err: ref SerializationError, filename: string): string {.base.} =
|
||||
"Serialisation error while processing " & filename
|
||||
|
||||
|
|
Loading…
Reference in New Issue