mirror of
https://github.com/NotAShelf/stash.git
synced 2026-04-17 00:03:46 +00:00
decode: fallback to relaying current clipboard to stdout on failure
Signed-off-by: NotAShelf <raf@notashelf.dev> Change-Id: I6a6a696451def3e367afa9e8b0dd6ae626906e53
This commit is contained in:
parent
06221892b7
commit
64c923480e
3 changed files with 56 additions and 9 deletions
|
|
@ -145,8 +145,7 @@ impl SqliteClipboardDb {
|
|||
}));
|
||||
}
|
||||
|
||||
Ok(serde_json::to_string_pretty(&entries)
|
||||
.map_err(|e| StashError::ListDecode(e.to_string()))?)
|
||||
serde_json::to_string_pretty(&entries).map_err(|e| StashError::ListDecode(e.to_string()))
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue