diff options
author | Adam Chlipala <adam@chlipala.net> | 2012-05-06 12:37:43 -0400 |
---|---|---|
committer | Adam Chlipala <adam@chlipala.net> | 2012-05-06 12:37:43 -0400 |
commit | f2b891fbf46eaf4e18ee972c9620dc6e5459e31a (patch) | |
tree | 2f56820b3f63c032bb741015bc8d64f070ea6aa7 /src/errormsg.sml | |
parent | 8fc21f019ff8eedfb1396e38b2352454c47598d2 (diff) |
Fix from Edward Yang to generation of 404 errors in FastCGI
Diffstat (limited to 'src/errormsg.sml')
-rw-r--r-- | src/errormsg.sml | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/errormsg.sml b/src/errormsg.sml index f9ed71e8..8f3c93b1 100644 --- a/src/errormsg.sml +++ b/src/errormsg.sml @@ -95,13 +95,13 @@ fun error s = (TextIO.output (TextIO.stdErr, s); TextIO.output1 (TextIO.stdErr, #"\n"); errors := true) -fun errorAt span s = (TextIO.output (TextIO.stdErr, #file span); - TextIO.output (TextIO.stdErr, ":"); - TextIO.output (TextIO.stdErr, posToString (#first span)); - TextIO.output (TextIO.stdErr, ": (to "); - TextIO.output (TextIO.stdErr, posToString (#last span)); - TextIO.output (TextIO.stdErr, ") "); - error s) +fun errorAt (span : span) s = (TextIO.output (TextIO.stdErr, #file span); + TextIO.output (TextIO.stdErr, ":"); + TextIO.output (TextIO.stdErr, posToString (#first span)); + TextIO.output (TextIO.stdErr, ": (to "); + TextIO.output (TextIO.stdErr, posToString (#last span)); + TextIO.output (TextIO.stdErr, ") "); + error s) fun errorAt' span s = errorAt (spanOf span) s end |