diff options
author | David Sherret <dsherret@users.noreply.github.com> | 2024-03-13 22:15:39 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-13 22:15:39 -0400 |
commit | 6f5a86ce5166440980a9100db5051452e9734fa6 (patch) | |
tree | 980f46c3c0f14a0a918fd8f3c6dc28cd45984f85 /tests/util/server/src/fs.rs | |
parent | da58722851fcdf965084a0736d83aac678d67032 (diff) |
chore: improve spec tests output (#22908)
Diffstat (limited to 'tests/util/server/src/fs.rs')
-rw-r--r-- | tests/util/server/src/fs.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/util/server/src/fs.rs b/tests/util/server/src/fs.rs index fb3e36ab6..8955dc30e 100644 --- a/tests/util/server/src/fs.rs +++ b/tests/util/server/src/fs.rs @@ -147,7 +147,7 @@ impl PathRef { ) .with_context(|| format!("Failed to parse {}", self)) .unwrap() - .expect("Found no value.") + .unwrap_or_else(|| panic!("JSON file was empty for {}", self)) } pub fn rename(&self, to: impl AsRef<Path>) { |