Merge pull request #3029 from lambdageek/dev/simplify-monoerror-threads
[mono.git] / mcs / tools / mono-service / mono-service.cs
index 20e43d84c97d1fd5e469ea73d5c38a404a20423f..87847f849c245cf01076a68486acba9ac99eff09 100644 (file)
@@ -269,7 +269,8 @@ class MonoServiceRunner : MarshalByRefObject
                                        info (logname, "Stopping service {0}", service.ServiceName);
                                        call (service, "OnStop", null);
                                        if (service.ExitCode != 0)
-                                               error (logname, "Service stopped with a non-zero ExitCode: {0}", service.ExitCode);
+                                               error (logname, "Service {0} stopped returning a non-zero ExitCode: {1}",
+                                                      service.ServiceName, service.ExitCode);
                                        running = false;
                                }
                                else if (usr1.IsSet && service.CanPauseAndContinue) {