client lib: Add MOONSHOT_ERROR_INSTALLATION_ERROR
authorSam Thursfield <samthursfield@codethink.co.uk>
Wed, 6 Jul 2011 01:04:00 +0000 (02:04 +0100)
committerSam Thursfield <samthursfield@codethink.co.uk>
Wed, 6 Jul 2011 01:04:00 +0000 (02:04 +0100)
libmoonshot/libmoonshot-msrpc.c
libmoonshot/libmoonshot.h

index df29b2f..05000ca 100644 (file)
@@ -84,7 +84,7 @@ static void launch_server (MoonshotError **error) {
     status = RegQueryValueEx (key, NULL, NULL, &value_type, exe_path, &length);
 
     if (value_type != REG_SZ) {
-        *error = moonshot_error_new (MOONSHOT_ERROR_OS_ERROR,
+        *error = moonshot_error_new (MOONSHOT_ERROR_INSTALLATION_ERROR,
                                      "Value of registry key HKLM\\%s is invalid. "
                                      "Please set it to point to the location of "
                                      "moonshot.exe",
index 2429314..381b944 100644 (file)
@@ -38,6 +38,7 @@
 typedef enum {
     MOONSHOT_ERROR_UNABLE_TO_START_SERVICE,
     MOONSHOT_ERROR_NO_IDENTITY_SELECTED,
+    MOONSHOT_ERROR_INSTALLATION_ERROR,
     MOONSHOT_ERROR_OS_ERROR,
     MOONSHOT_ERROR_IPC_ERROR
 } MoonshotErrorCode;