add vim swap files to gitignore
Better raise_error fn