Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: installer/src/installer-lib/session.cpp

Issue 6197445574787072: Cleaned up CA exceptions. Integrated free-standing handle class. (Closed)
Patch Set: Created March 30, 2014, 7:43 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: installer/src/installer-lib/session.cpp
===================================================================
--- a/installer/src/installer-lib/session.cpp
+++ b/installer/src/installer-lib/session.cpp
@@ -2,13 +2,10 @@
* \file session.cpp Implementation of Session class.
*/
+#include "installer-lib.h"
#include "session.h"
#include "property.h"
#include "msiquery.h"
-
-// Temporary for debugging
-#include <sstream>
-
//-----------------------------------------------------------------------------------------
// Message
@@ -81,10 +78,7 @@
int x = write_message_noexcept( m ) ;
if ( x == -1 )
{
- DWORD z = ::GetLastError();
- std::ostringstream s ;
- s << "Error writing message. err = 0x" << std::hex << z ;
- throw std::runtime_error( s.str() ) ;
+ throw windows_api_error( "MsiProcessMessage", x, "attempt to write to log file" ) ;
}
return x ;
}

Powered by Google App Engine
This is Rietveld