nathggns / node-compass

Compass middleware for node.js.
43 stars 13 forks source link

Crashes node without error when default paths dont exist #25

Open nihaopaul opened 10 years ago

nihaopaul commented 10 years ago

took me a while to find out what was going on, but it was crashing node without a warning when the default paths did not exist.. this is my solution but would be great to overcome this, also i needed to include the project path, even though it isn't where config.rb is:

app.configure(function() {
    app.use(compass({
      project: path.join(__dirname, '/app'), 
      config_file: 'config.rb'
    }));
});
nathggns commented 10 years ago

Sorry can you try re-explaining this?

nathggns commented 10 years ago

(Sorry it took me so long to get back to you too)

nathggns commented 10 years ago

Okay I think I know what you mean. I'll look into getting this fixed.

dspaeth-faber commented 9 years ago

I think I have a similar issue. The compass executable was not found (wrong gemset used) and I got a cryptic

events.js:72
        throw er; // Unhandled 'error' event
              ^
Error: spawn ENOENT
  at errnoException (child_process.js:998:11)
  at Process.ChildProcess._handle.onexit (child_process.js:789:34)

It would be nice when spawn Exceptions will be catched and a meaning full error is displayed.

dotnetCarpenter commented 9 years ago

+1