Skip to content

Commit 51c88f6

Browse files
committed
Better error message for missing gen.toml.
1 parent a1c4b48 commit 51c88f6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • task-maker-format/src/ioi/format/italian_toml

task-maker-format/src/ioi/format/italian_toml/gen_toml.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ pub(super) fn parse(
259259
grader_map: Arc<GraderMap>,
260260
) -> Result<(HashMap<u32, SubtaskInfo>, HashMap<u32, TestcaseInfo>)> {
261261
let gen_toml_path = task_dir.join("gen").join("gen.toml");
262-
let gen_toml = std::fs::read_to_string(gen_toml_path)?;
262+
let gen_toml = std::fs::read_to_string(gen_toml_path).context("Failed to open gen/gen.toml")?;
263263
let gen_toml: GenConfig =
264264
toml::from_str(&gen_toml).context("Failed to deserialize task.toml")?;
265265

0 commit comments

Comments
 (0)