[mlpack-git] master: Better documentation of save failures. (b7911f9)

gitdub at big.cc.gt.atl.ga.us gitdub at big.cc.gt.atl.ga.us
Mon Dec 21 13:26:39 EST 2015


Repository : https://github.com/mlpack/mlpack

On branch  : master
Link       : https://github.com/mlpack/mlpack/compare/09cbc6e13aa3cb8a7c4ea6d2e1612977a40c6be7...be72510a765362f86782a8892f0e979aaa4a9f62

>---------------------------------------------------------------

commit b7911f9dc463b3b9d1e1836db7cf461fe1b636e4
Author: ryan <ryan at ratml.org>
Date:   Mon Dec 21 12:51:34 2015 -0500

    Better documentation of save failures.


>---------------------------------------------------------------

b7911f9dc463b3b9d1e1836db7cf461fe1b636e4
 src/mlpack/core/data/save_impl.hpp | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/src/mlpack/core/data/save_impl.hpp b/src/mlpack/core/data/save_impl.hpp
index a6c9a4b..0dd302e 100644
--- a/src/mlpack/core/data/save_impl.hpp
+++ b/src/mlpack/core/data/save_impl.hpp
@@ -191,10 +191,11 @@ bool Save(const std::string& filename,
     {
       if (fatal)
         Log::Fatal << "Unable to detect type of '" << filename << "'; incorrect"
-            << " extension?" << std::endl;
+            << " extension? (allowed: xml/bin/txt)" << std::endl;
       else
-        Log::Warn << "Unable to detect type of '" << filename << "'; load "
-            << "failed.  Incorrect extension?" << std::endl;
+        Log::Warn << "Unable to detect type of '" << filename << "'; save "
+            << "failed.  Incorrect extension? (allowed: xml/bin/txt)"
+            << std::endl;
 
       return false;
     }



More information about the mlpack-git mailing list