Updated .gitignore to ignore subl project files
Fixed bug in error handling