Write warning messages to stderr instead of stdout.
Philip Wernersbach philip.wernersbach@gmail.com
Sun, 26 Apr 2015 18:31:08 -0400
1 files changed,
2 insertions(+),
2 deletions(-)
jump to
M
hastyscribe.nim
→
hastyscribe.nim
@@ -60,7 +60,7 @@ if (file.existsFile):
let contents = file.readFile return encode_image(contents, format) else: - echo("Warning: image '"& file &"' not found.") + stderr.writeln("Warning: image '"& file &"' not found.") return file proc encode_font*(font, format): string =@@ -154,7 +154,7 @@ var matches:TSnippet
discard snippet.match(peg_snippet, matches) var id = matches[0].strip if snippets[id] == nil: - echo "Warning: Snippet '" & id & "' not defined." + stderr.writeln "Warning: Snippet '" & id & "' not defined." doc = doc.replace(snippet, "") else: doc = doc.replace(snippet, snippets[id])