all repos — hastyscribe @ c0867b83f2ccbd56417e108e102f66c5700046ca

A professional markdown compiler.

Write warning messages to stderr instead of stdout.
Philip Wernersbach philip.wernersbach@gmail.com
Sun, 26 Apr 2015 18:31:08 -0400
commit

c0867b83f2ccbd56417e108e102f66c5700046ca

parent

6abdbd4a231cc02466aa3a39624698d5ee3bf09a

1 files changed, 2 insertions(+), 2 deletions(-)

jump to
M hastyscribe.nimhastyscribe.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])