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

Unified Diff: installer/src/installer-lib/database.h

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/database.h
===================================================================
--- a/installer/src/installer-lib/database.h
+++ b/installer/src/installer-lib/database.h
@@ -12,6 +12,7 @@
#include <Msi.h>
#include <MsiQuery.h>
+#include "installer-lib.h"
#include "handle.h"
#include "session.h"
@@ -116,7 +117,7 @@
UINT x = MsiOpenDatabaseW( pathname, MSIDBOPEN_READONLY, & handle ) ;
if ( x != ERROR_SUCCESS )
{
- throw std::runtime_error( "Open database from file system failed" ) ;
+ throw windows_api_error( "MsiOpenDatabaseW", x, "MSI database on file system" ) ;
}
return msi_handle( handle ) ;
}

Powered by Google App Engine
This is Rietveld