Skip to content

Commit

Permalink
fix coverity 1075695 (switch-break), re #11328
Browse files Browse the repository at this point in the history
  • Loading branch information
FedeMPouzols committed Mar 12, 2015
1 parent 6fcbfae commit a698e22
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Code/Mantid/Framework/DataHandling/src/LoadCanSAS1D.cpp
Expand Up @@ -121,7 +121,8 @@ void LoadCanSAS1D::exec() {
std::string runName;
switch (numEntries) {
case 0:
Exception::NotFoundError("No <SASentry>s were found in the file", fileName);
throw Exception::NotFoundError("No <SASentry>s were found in the file", fileName);
break;
case 1:
// the value of the string runName is unused in this case
WS = loadEntry(entryList->item(0), runName);
Expand Down

0 comments on commit a698e22

Please sign in to comment.