appendto/anvil.js — pull request #41 by ferranselles (2012-07-05 08:12:51+00:00)
Title: Show error when importing a file that doesn't exists

Hello, I have found that if you try to import a file that doesn't exists it fails with the following error:

```
/usr/local/lib/node_modules/anvil.js/lib/anvil.js:925
return file.fullPath === importFile.fullPath;
^
TypeError: Cannot read property 'fullPath' of undefined
at Combiner.findDependents.imported (/usr/local/lib/node_modules/anvil.js/lib/anvil.js:925:42)
...
```

If you mistype the filename on an import statement I find that this error is not very helpful because it doesn't say which file fails.

I have modified the function `findImports` from `combiner.coffee` to show an error message if the imported file doesn't exists, **anvil** doesn't abort but the file isn't pushed to `imports`.

I hope this code is okay and helpful to somebody.