diff options
Diffstat (limited to 'db/cloner.cpp')
-rw-r--r-- | db/cloner.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/db/cloner.cpp b/db/cloner.cpp index 26c2f74b6df..6d5b095d1df 100644 --- a/db/cloner.cpp +++ b/db/cloner.cpp @@ -169,7 +169,8 @@ namespace mongo { getDur().commitIfNeeded(); } catch( UserException& e ) { - log() << "warning: exception cloning object in " << from_collection << ' ' << e.what() << " obj:" << js.toString() << '\n'; + error() << "error: exception cloning object in " << from_collection << ' ' << e.what() << " obj:" << js.toString() << '\n'; + throw; } RARELY if ( time( 0 ) - saveLast > 60 ) { @@ -238,7 +239,8 @@ namespace mongo { getDur().commitIfNeeded(); } catch( UserException& e ) { - log() << "warning: exception cloning object in " << from_collection << ' ' << e.what() << " obj:" << js.toString() << '\n'; + error() << "error: exception cloning object in " << from_collection << ' ' << e.what() << " obj:" << js.toString() << '\n'; + throw; } } } |