Skip to content

Commit

Permalink
Updates: message for preserved settings error.
Browse files Browse the repository at this point in the history
  • Loading branch information
korvyashka committed Aug 5, 2024
1 parent 70cae5d commit f995c76
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/commands/edge_app_manifest.rs
Original file line number Diff line number Diff line change
Expand Up @@ -761,7 +761,7 @@ settings:
let result = EdgeAppManifest::ensure_manifest_is_valid(&file_path);
assert!(result.is_err());
assert!(result.unwrap_err().to_string().contains(
"Setting \"screenly_setting\" cannot start with \"screenly_\""
"Setting \"screenly_setting\" cannot start with \"screenly_\" as this prefix is preserved."
));
}

Expand Down
2 changes: 1 addition & 1 deletion src/commands/edge_app_settings.rs
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ where
}
if setting.name.starts_with("screenly_") {
return Err(serde::de::Error::custom(format!(
"Setting \"{}\" cannot start with \"screenly_\"",
"Setting \"{}\" cannot start with \"screenly_\" as this prefix is preserved.",
setting.name
)));
}
Expand Down

0 comments on commit f995c76

Please sign in to comment.