Skip to content

Commit

Permalink
fix(mcl.commands.shard_matrix): Log as warning instead of error when …
Browse files Browse the repository at this point in the history
…there is no `mcl.matrix.shardCount` output
  • Loading branch information
PetarKirov committed Aug 12, 2024
1 parent cb38131 commit b8da00f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/mcl/src/src/mcl/commands/shard_matrix.d
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import std.array : array;
import std.conv : to, parse;
import std.file : append, write;
import std.format : fmt = format;
import std.logger : errorf, infof;
import std.logger : warnf, infof;
import std.path : buildPath;
import std.range : iota;
import std.regex : matchFirst, regex;
Expand Down Expand Up @@ -69,7 +69,7 @@ ShardMatrix generateShardMatrix(string flakeRef = ".")

if (shardCount == 0)
{
errorf("No shards found, exiting");
warnf("No shards found, exiting");
return ShardMatrix([Shard("", "", -1)]);
}

Expand Down

0 comments on commit b8da00f

Please sign in to comment.