From 61cc5185e5ccf1bb6d1201063ac3a62e3b7fcfbb Mon Sep 17 00:00:00 2001 From: Chris Davis Date: Thu, 7 Aug 2014 06:17:28 -0700 Subject: [PATCH] regedit: print error msg if opening registry fails Signed-off-by: Chris Davis Reviewed-by: Andreas Schneider Reviewed-by: Michael Adam --- source3/utils/regedit.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source3/utils/regedit.c b/source3/utils/regedit.c index 9cb4fca3405..fe2caf6ba3e 100644 --- a/source3/utils/regedit.c +++ b/source3/utils/regedit.c @@ -796,6 +796,8 @@ int main(int argc, const char **argv) rv = reg_open_samba3(frame, &ctx); if (!W_ERROR_IS_OK(rv)) { + fprintf(stderr, "Unable to open registry: %s\n", + win_errstr(rv)); TALLOC_FREE(frame); return 1; -- 2.11.4.GIT