Skip to content

Commit 47e2381

Browse files
authored
Merge pull request #12613 from Mic92/minor-cleanups
Fix double quoting in some error messages
2 parents 2c1447b + 3b1e23a commit 47e2381

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

src/libfetchers/git.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -637,7 +637,7 @@ struct GitInputScheme : InputScheme
637637
if (!input.getRev())
638638
setWriteTime(localRefFile, now, now);
639639
} catch (Error & e) {
640-
warn("could not update mtime for file '%s': %s", localRefFile, e.info().msg);
640+
warn("could not update mtime for file %s: %s", localRefFile, e.info().msg);
641641
}
642642
if (!originalRef && !storeCachedHead(repoUrl.to_string(), ref))
643643
warn("could not update cached head '%s' for '%s'", ref, repoInfo.locationToArg());

src/libflake/flake/flake.cc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -863,11 +863,11 @@ LockedFlake lockFlake(
863863
auto s = chomp(diff);
864864
if (lockFileExists) {
865865
if (s.empty())
866-
warn("updating lock file '%s'", outputLockFilePath);
866+
warn("updating lock file %s", outputLockFilePath);
867867
else
868-
warn("updating lock file '%s':\n%s", outputLockFilePath, s);
868+
warn("updating lock file %s:\n%s", outputLockFilePath, s);
869869
} else
870-
warn("creating lock file '%s': \n%s", outputLockFilePath, s);
870+
warn("creating lock file %s: \n%s", outputLockFilePath, s);
871871

872872
std::optional<std::string> commitMessage = std::nullopt;
873873

src/libstore/remote-store.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ RemoteStore::RemoteStore(const Params & params)
2828
: RemoteStoreConfig(params)
2929
, Store(params)
3030
, connections(make_ref<Pool<Connection>>(
31-
std::max(1, (int) maxConnections),
31+
std::max(1, maxConnections.get()),
3232
[this]() {
3333
auto conn = openConnectionWrapper();
3434
try {

0 commit comments

Comments
 (0)