Inconsistent truncated error messages
hoodunit opened this issue · 4 comments
Hi. After updating from 0.3.1 to 0.4.1, this seems to be swallowing my error messages. I will sometimes get no error message or sometimes part of the message and the part varies.
Example case that fails with a normal error message with 0.3.1 but gives truncated messages in 0.4.1:
gulpfile.js:
gulp.task('server', function(){
return gulp.src([paths.server, paths.dependencies])
.pipe(purescript.psc({
main: 'Server.Main',
output: 'server.js',
module: ['Server.Main']
}))
.pipe(gulp.dest('build'));
});src/Server.Main:
module Server.Main where
import Debug.Trace
main = do
fail0.3.1 error message:
[17:38:25] Using gulpfile gulpfile.js
[17:38:25] Starting 'server'...
events.js:85
throw er; // Unhandled 'error' event
^
Error: Error in module Server.Main:
Error at src/server/main.purs line 48, column 6 - line 48, column 6:
Unknown value fail
See https://github.com/purescript/purescript/wiki/Error-Code-UnknownValue for more information, or to contribute content related to this error.
0.4.1 error message:
[17:33:37] Using gulpfile gulpfile.js
[17:33:37] Starting 'server'...
events.js:85
throw er; // Unhandled 'error' event
^
Error: r.
at ChildProcess.<anonymous> (node_modules/gulp-purescript/index.js:2215:32)
at ChildProcess.emit (events.js:110:17)
at maybeClose (child_process.js:1015:16)
at Process.ChildProcess._handle.onexit (child_process.js:1087:5)
Gulp version: 3.8.11
Purescript version: 0.6.9.3
Thanks for the report. I will take a look.
Should be okay in version 0.4.2. Can you please confirm when you have a chance? Thanks
That seems to fix it, thanks!
Great! Welcome
On Thursday, April 30, 2015, Nicholas Kariniemi notifications@github.com
wrote:
That seems to fix it, thanks!
—
Reply to this email directly or view it on GitHub
#26 (comment)
.