don't print out old getLastError on client error SERVER-852
This commit is contained in:
@@ -510,8 +510,8 @@ int _main(int argc, char* argv[]) {
|
||||
|
||||
if ( ! wascmd ){
|
||||
try {
|
||||
scope->exec( code.c_str() , "(shell)" , false , true , false );
|
||||
scope->exec( "shellPrintHelper( __lastres__ );" , "(shell2)" , true , true , false );
|
||||
if ( scope->exec( code.c_str() , "(shell)" , false , true , false ) )
|
||||
scope->exec( "shellPrintHelper( __lastres__ );" , "(shell2)" , true , true , false );
|
||||
}
|
||||
catch ( std::exception& e ){
|
||||
cout << "error:" << e.what() << endl;
|
||||
|
||||
Reference in New Issue
Block a user