summaryrefslogtreecommitdiff
path: root/libimagentrylink/src/internal.rs
diff options
context:
space:
mode:
Diffstat (limited to 'libimagentrylink/src/internal.rs')
-rw-r--r--libimagentrylink/src/internal.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/libimagentrylink/src/internal.rs b/libimagentrylink/src/internal.rs
index 1c17026..5949495 100644
--- a/libimagentrylink/src/internal.rs
+++ b/libimagentrylink/src/internal.rs
@@ -44,11 +44,12 @@ pub enum Link {
impl Link {
- pub fn exists(&self) -> bool {
+ pub fn exists(&self) -> Result<bool> {
match *self {
Link::Id { ref link } => link.exists(),
Link::Annotated { ref link, .. } => link.exists(),
}
+ .map_err_into(LEK::StoreIdError)
}
pub fn to_str(&self) -> Result<String> {