chiark
/
gitweb
/
~ianmdlvl
/
otter.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8122fba
)
library loading, warning message
author
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Sat, 26 Sep 2020 16:24:59 +0000
(17:24 +0100)
committer
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Sat, 26 Sep 2020 16:24:59 +0000
(17:24 +0100)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
src/shapelib.rs
patch
|
blob
|
history
diff --git
a/src/shapelib.rs
b/src/shapelib.rs
index 71e8ce9d6aa14ed88719a08eee3eb1ab9ea7016c..91066a4a3fb235ed1f7011c208c76bdb0a88cf48 100644
(file)
--- a/
src/shapelib.rs
+++ b/
src/shapelib.rs
@@
-182,6
+182,8
@@
impl ItemSpec {
let svg_path = format!("{}/{}.usvg", lib.dirname, &self.item);
let svg_data = fs::read_to_string(&svg_path)
.map_err(|e| if e.kind() == ErrorKind::NotFound {
+ warn!("library item lib={} itme={} data file {:?} not found",
+ &self.lib, &self.item, &svg_path);
SE::LibraryItemNotFound
} else {
let m = "error accessing/reading library item data file";