Skip to content

Commit

Permalink
Include original exception
Browse files Browse the repository at this point in the history
  • Loading branch information
mausch committed Aug 20, 2015
1 parent e7a35b0 commit 4758ae1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,5 @@ _NCrunch*/*
*~
packages/*
.nuget/*.exe
*.sln.ide
*.sln.ide
.vs/*
4 changes: 2 additions & 2 deletions SampleSolrApp/Global.asax.cs
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,8 @@ private void AddInitialDocuments() {
}
solr.Commit();
solr.BuildSpellCheckDictionary();
} catch (SolrConnectionException) {
throw new Exception(string.Format("Couldn't connect to Solr. Please make sure that Solr is running on '{0}' or change the address in your web.config, then restart the application.", solrURL));
} catch (SolrConnectionException e) {
throw new Exception(string.Format("Couldn't connect to Solr. Please make sure that Solr is running on '{0}' or change the address in your web.config, then restart the application.", solrURL), e);
}
}

Expand Down

0 comments on commit 4758ae1

Please sign in to comment.