Skip to content

Commit

Permalink
make error messages for "hyperdex" more useful
Browse files Browse the repository at this point in the history
  • Loading branch information
rescrv committed Jan 20, 2013
1 parent 87548f6 commit daf052d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hyperdex.cc
Expand Up @@ -139,7 +139,7 @@ main(int argc, const char* argv[])

if (execv(p->path, const_cast<char*const*>(args)) < 0)
{
std::cerr << "failed to exec " << p->name << ": " << strerror(errno) << std::endl;
std::cerr << "failed to exec " << p->name << " from " << p->path << ": " << strerror(errno) << std::endl;
return EXIT_FAILURE;
}

Expand All @@ -148,6 +148,6 @@ main(int argc, const char* argv[])
}
}

std::cerr << "unknown command " << args[0] << "\n" << std::endl;
std::cerr << "hyperdex: '" << args[0] << "' is not a HyperDex command. See 'hyperdex --help'\n" << std::endl;
return help(poptcon);
}

0 comments on commit daf052d

Please sign in to comment.