Skip to content

Commit

Permalink
fix problem with FileNotFound exception
Browse files Browse the repository at this point in the history
  • Loading branch information
gonuke committed Feb 28, 2019
1 parent b0be1c6 commit 8bcb9dc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ namespace pyne {
/// Creates a helpful error message.
virtual const char* what() const throw()
{
std::string FNFstr ("File not found: ");
FNFstr = "File not found: ";
if (!filename.empty())
FNFstr += filename;

Expand All @@ -174,6 +174,7 @@ namespace pyne {

private:
std::string filename; ///< unfindable filename.
std::string FNFstr; /// Message for exception
};

/// Exception representing value errors of all kinds
Expand Down

0 comments on commit 8bcb9dc

Please sign in to comment.