Minor error message fixes.
authorMikhail Glushenkov <foldr@codedgers.com>
Fri, 30 May 2008 06:16:59 +0000 (06:16 +0000)
committerMikhail Glushenkov <foldr@codedgers.com>
Fri, 30 May 2008 06:16:59 +0000 (06:16 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51740 91177308-0d34-0410-b5e6-96231b3b80d8

tools/llvmc2/CompilationGraph.cpp

index 7ce431341b16145797683e89b8e4890e84a274c0..bf34b333d6d6a4a39fd5ed99300a6413ae1829d8 100644 (file)
@@ -102,7 +102,7 @@ CompilationGraph::getToolsVector(const std::string& LangName) const
   tools_map_type::const_iterator I = ToolsMap.find(LangName);
   if (I == ToolsMap.end())
     throw std::runtime_error("No tool corresponding to the language "
-                             + LangName + "found");
+                             + LangName + " found");
   return I->second;
 }
 
@@ -391,14 +391,15 @@ namespace llvm {
 }
 
 void CompilationGraph::writeGraph() {
-  std::ofstream O("CompilationGraph.dot");
+  std::ofstream O("compilation-graph.dot");
 
   if (O.good()) {
     llvm::WriteGraph(this, "compilation-graph");
     O.close();
   }
   else {
-    throw std::runtime_error("Error opening file for writing");
+    throw std::runtime_error("Error opening file 'compilation-graph.dot'"
+                             " for writing!");
   }
 }