Check for errors in Resume before waiting for the resume to complete.

git-svn-id: https://llvm.org/svn/llvm-project/llvdb/trunk@111216 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/source/Expression/ClangFunction.cpp b/source/Expression/ClangFunction.cpp
index 957be2a..5d3e4c8 100644
--- a/source/Expression/ClangFunction.cpp
+++ b/source/Expression/ClangFunction.cpp
@@ -515,7 +515,12 @@
         timeout_ptr = &real_timeout;
     }
     
-    exe_ctx.process->Resume ();
+    Error resume_error = exe_ctx.process->Resume ();
+    if (!resume_error.Success())
+    {
+        errors.Printf("Error resuming inferior: \"%s\".\n", resume_error.AsCString());
+        return eExecutionSetupError;
+    }
     
     Log *log = lldb_private::GetLogIfAllCategoriesSet (LIBLLDB_LOG_STEP);