Mercurial > trustbridge
comparison cinst/nssstore_win.c @ 503:7f2cb85288d0
Move printlasterror into logging
author | Andre Heinecke <aheinecke@intevation.de> |
---|---|
date | Mon, 28 Apr 2014 09:18:55 +0000 |
parents | e551de11d8b6 |
children | 69dd092e2512 |
comparison
equal
deleted
inserted
replaced
502:e551de11d8b6 | 503:7f2cb85288d0 |
---|---|
58 #ifndef SELECTION_FILE_NAME | 58 #ifndef SELECTION_FILE_NAME |
59 #define SELECTION_FILE_NAME L"currently_selected.txt" | 59 #define SELECTION_FILE_NAME L"currently_selected.txt" |
60 #endif | 60 #endif |
61 | 61 |
62 #define PROCESS_TIMEOUT 30000 | 62 #define PROCESS_TIMEOUT 30000 |
63 | |
64 #define PRINTLASTERROR(msg) \ | |
65 char *my_error = getLastErrorMsg(); \ | |
66 if (my_error) { \ | |
67 DEBUGPRINTF(msg " : %s\n", my_error); \ | |
68 ERRORPRINTF(msg" : %s\n", my_error); \ | |
69 free (my_error); \ | |
70 } \ | |
71 DEBUGPRINTF ("Failed to get error information\n"); | |
72 | 63 |
73 /**@brief Write strv of instructions to a handle | 64 /**@brief Write strv of instructions to a handle |
74 * | 65 * |
75 * Writes the null terminated list of instructions to | 66 * Writes the null terminated list of instructions to |
76 * the handle. | 67 * the handle. |