Skip to content

Commit f9fd695

Browse files
authored
Merge pull request #46881 from jroloff/localSherpackFix
Fixing sherpack location finder for local case
2 parents e2194fc + 0f8cfb3 commit f9fd695

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

GeneratorInterface/SherpaInterface/src/SherpackFetcher.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ namespace spf {
2828
int SherpackFetcher::Fetch() {
2929
std::string option = "-c";
3030
std::string constr = "`cmsGetFnConnect frontier://smallfiles`";
31-
std::string sherpack = "sherpa_" + SherpaProcess + "_MASTER.tgz";
31+
std::string sherpack = SherpackLocation + "/sherpa_" + SherpaProcess + "_MASTER.tgz";
3232
std::string sherpackunzip = "sherpa_" + SherpaProcess + "_MASTER.tar";
3333
std::string path = SherpackLocation + "/" + sherpack;
3434

@@ -48,7 +48,7 @@ namespace spf {
4848

4949
std::ifstream my_file(sherpack.c_str());
5050
if (!my_file.good()) {
51-
throw cms::Exception("SherpaInterface") << "SherpackFetcher: No Sherpack found" << std::endl;
51+
throw cms::Exception("SherpaInterface") << "SherpackFetcher: No Sherpack found: " << sherpack << std::endl;
5252
return -2;
5353
}
5454
my_file.close();

0 commit comments

Comments
 (0)