diff --git a/src/dgraph/interpreter.cpp b/src/dgraph/interpreter.cpp
index 5ae153d61347f1b0481392318f602279a556aef8..a59bb31150703b4787dee8857058231e0d1c2677 100644
--- a/src/dgraph/interpreter.cpp
+++ b/src/dgraph/interpreter.cpp
@@ -22,6 +22,8 @@
 /* --- INCLUDE --------------------------------------------------------- */
 /* --------------------------------------------------------------------- */
 
+#include <boost/format.hpp>
+
 /* DYNAMIC-GRAPH */
 #include <dynamic-graph/interpreter.h>
 #include <dynamic-graph/plugin-loader.h>
@@ -285,9 +287,10 @@ cmdRun( const std::string& cmdLine, std::istringstream& cmdArg, std::ostream& os
   ifstream script( filename.c_str(),ios::in );
   if(! script.is_open() )
     {
-      DG_THROW ExceptionFactory( ExceptionFactory::READ_FILE,
-				     "File is not open."," (while reading <%s>).",
-				     filename.c_str() );
+      boost::format fmt
+	("failed to run file ``%1%'' (file does not exist or is not readable).");
+      fmt % filename;
+      DG_THROW ExceptionFactory (ExceptionFactory::READ_FILE, fmt.str ());
     }
 
   const int SIZE = 16384;