diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2018-05-17 15:45:41 +0200 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2018-05-17 15:45:41 +0200 |
commit | b2c7910fb60528520d71686ac7c80a30553f9320 (patch) | |
tree | bb473793fc12785dbb532a602d607df977ddd895 /compiler/msgs.nim | |
parent | bf6c2c5ccfd33cc8aab53b98dbce0619f8633d84 (diff) | |
download | Nim-b2c7910fb60528520d71686ac7c80a30553f9320.tar.gz |
compiler/ropes.nim has no global error handler anymore
Diffstat (limited to 'compiler/msgs.nim')
-rw-r--r-- | compiler/msgs.nim | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/compiler/msgs.nim b/compiler/msgs.nim index 4c02a134e..b3256e3bb 100644 --- a/compiler/msgs.nim +++ b/compiler/msgs.nim @@ -618,13 +618,6 @@ proc quotedFilename*(conf: ConfigRef; i: TLineInfo): Rope = else: result = fileInfos[i.fileIndex.int32].quotedName -ropes.errorHandler = proc (err: RopesError, msg: string, useWarning: bool) = - case err - of rInvalidFormatStr: - internalError(newPartialConfigRef(), "ropes: invalid format string: " & msg) - of rCannotOpenFile: - rawMessage(newPartialConfigRef(), if useWarning: warnCannotOpenFile else: errCannotOpenFile, msg) - proc listWarnings*(conf: ConfigRef) = msgWriteln(conf, "Warnings:") for warn in warnMin..warnMax: |