diff options
author | fireice-uk <fireice-uk@users.noreply.github.com> | 2018-04-02 21:14:14 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-02 21:14:14 +0100 |
commit | 6feffe2228282814abe716d241292ca2648a4e2a (patch) | |
tree | 277cc583c0f5df77e781dec0ba5019daf08e75d0 /xmrstak/backend/nvidia/jconf.cpp | |
parent | a036cd81592e3b3de804ba88bb8f94729ab60b7d (diff) | |
parent | 6880be70a6b29a1c850f4a4603bbc38d0ca6d117 (diff) | |
download | xmr-stak-6feffe2228282814abe716d241292ca2648a4e2a.zip xmr-stak-6feffe2228282814abe716d241292ca2648a4e2a.tar.gz |
Merge pull request #1279 from fireice-uk/dev
release 2.4.0
Diffstat (limited to 'xmrstak/backend/nvidia/jconf.cpp')
-rw-r--r-- | xmrstak/backend/nvidia/jconf.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/xmrstak/backend/nvidia/jconf.cpp b/xmrstak/backend/nvidia/jconf.cpp index 46c5726..c9d4f19 100644 --- a/xmrstak/backend/nvidia/jconf.cpp +++ b/xmrstak/backend/nvidia/jconf.cpp @@ -235,15 +235,15 @@ bool jconf::parse_config(const char* sFilename) if(prv->jsonDoc.HasParseError()) { - printer::inst()->print_msg(L0, "JSON config parse error(offset %llu): %s", - int_port(prv->jsonDoc.GetErrorOffset()), GetParseError_En(prv->jsonDoc.GetParseError())); + printer::inst()->print_msg(L0, "JSON config parse error in '%s' (offset %llu): %s", + sFilename, int_port(prv->jsonDoc.GetErrorOffset()), GetParseError_En(prv->jsonDoc.GetParseError())); return false; } if(!prv->jsonDoc.IsObject()) { //This should never happen as we created the root ourselves - printer::inst()->print_msg(L0, "Invalid config file. No root?\n"); + printer::inst()->print_msg(L0, "Invalid config file '%s'. No root?", sFilename); return false; } @@ -259,13 +259,13 @@ bool jconf::parse_config(const char* sFilename) if(prv->configValues[i] == nullptr) { - printer::inst()->print_msg(L0, "Invalid config file. Missing value \"%s\".", oConfigValues[i].sName); + printer::inst()->print_msg(L0, "Invalid config file '%s'. Missing value \"%s\".", sFilename, oConfigValues[i].sName); return false; } if(!checkType(prv->configValues[i]->GetType(), oConfigValues[i].iType)) { - printer::inst()->print_msg(L0, "Invalid config file. Value \"%s\" has unexpected type.", oConfigValues[i].sName); + printer::inst()->print_msg(L0, "Invalid config file '%s'. Value \"%s\" has unexpected type.", sFilename, oConfigValues[i].sName); return false; } } @@ -274,4 +274,4 @@ bool jconf::parse_config(const char* sFilename) } } // namespace nvidia -} // namespace xmrstak
\ No newline at end of file +} // namespace xmrstak |