From 18173b53cc5adf206945cbce7d1860d0a218cfb3 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Thu, 4 Mar 2010 07:41:20 -0800 Subject: [PATCH] crushtool: fail on parse error --- src/crushtool.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/crushtool.cc b/src/crushtool.cc index 5c97aab6ef360..09e18404d912e 100644 --- a/src/crushtool.cc +++ b/src/crushtool.cc @@ -463,7 +463,7 @@ int compile_crush_file(const char *infn, CrushWrapper &crush) int pos = cpos - p->first; cerr << infn << ":" << line //<< ":" << (pos+1) << " error: parse error at '" << line_val[line].substr(pos) << "'" << std::endl; - return 1; + return -1; } //cout << "parsing succeeded\n"; -- 2.39.5