clipmenu

Simple clipboard management using dmenu
git clone https://git.sinitax.com/cdown/clipmenu
Log | Files | Refs | README | LICENSE | sfeed.txt

commit d82337d226939a5cbeeb6de1b6708b39bb7a0296
parent 0b003d4ad2b889e6a6201d3f4eeceaea254f0529
Author: Chris Down <chris@chrisdown.name>
Date:   Tue, 10 Apr 2018 11:07:01 +0100

Add more debugging information when cache entry is missing

This would help with #73.

Diffstat:
Mclipmenu | 6+++++-
1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/clipmenu b/clipmenu @@ -59,7 +59,11 @@ file=$cache_dir/$(cksum <<< "$chosen_line") if ! [[ -f "$file" ]]; then # We didn't find this in cache - printf 'FATAL: %s not in cache\n' "$chosen_line" >&2 + printf 'FATAL: %s not in cache (%s missing)\n' "$chosen_line" "$file" >&2 + printf 'Please report the following debug information:\n\n' >&2 + wc -l "$cache_file_prefix"_* >&2 + grep -nFR "$chosen_line" "$cache_dir" >&2 + stat "$file" >&2 exit 2 fi