about summary refs log tree commit diff
path: root/tools/perf-flamegraph.nix
diff options
context:
space:
mode:
authorFlorian Klink <flokli@flokli.de>2023-09-17T11·59+0300
committerflokli <flokli@flokli.de>2023-09-17T13·14+0000
commit51b8571c48168435c892cb58e9ad62f7c979e4d5 (patch)
tree8c2fefa7f937dd3bd5121bea542b125a1c51d7fe /tools/perf-flamegraph.nix
parent54bb63dea3a21a2ed40a63a20bacf0220236a7fb (diff)
feat(tvix/store): improve error message formatting r/6598
WrongSorting(Vec<u8>) actually encodes the name of a node, so if we can,
we want this to display it as a string (and fall back to the base64
encoding if we can't).

Before:

> rpc error: code = InvalidArgument desc = directory b3:yfwNlpPm8MkrRvshGHfgMtKLoSDtX2pKliVuVWmUt5g= failed validation: [108, 111, 99, 97, 108, 101] is not sorted

After:

> rpc error: code = InvalidArgument desc = directory b3:yfwNlpPm8MkrRvshGHfgMtKLoSDtX2pKliVuVWmUt5g= failed validation: locale is not sorted

Change-Id: I68420c53a89cb1aa96e4bdce414366cebcb7915f
Reviewed-on: https://cl.tvl.fyi/c/depot/+/9350
Tested-by: BuildkiteCI
Reviewed-by: Connor Brewster <cbrewster@hey.com>
Reviewed-by: raitobezarius <tvl@lahfa.xyz>
Diffstat (limited to 'tools/perf-flamegraph.nix')
0 files changed, 0 insertions, 0 deletions