mirror of
https://github.com/kata-containers/cgroups-rs.git
synced 2026-08-05 02:13:23 +00:00
error: introduce thiserror to add path to error message
For some cgroup file operations, when failed, add the path and the value (for write operation) to the error message. Fixes: #93 Signed-off-by: bin liu <liubin0329@gmail.com>
This commit is contained in:
+2
-1
@@ -14,9 +14,10 @@ readme = "README.md"
|
||||
[dependencies]
|
||||
log = "0.4"
|
||||
regex = "1.1"
|
||||
nix = { version = "0.24", default-features = false, features = ["event", "fs", "process"] }
|
||||
nix = { version = "0.25.0", default-features = false, features = ["event", "fs", "process"] }
|
||||
libc = "0.2"
|
||||
serde = { version = "1.0", features = ["derive"], optional = true }
|
||||
thiserror = "1"
|
||||
|
||||
[dev-dependencies]
|
||||
libc = "0.2.76"
|
||||
|
||||
Reference in New Issue
Block a user