diff --git a/shared/challenges_markdown/three/part_two.md b/shared/challenges_markdown/three/part_two.md index ddadf9c..bcab930 100644 --- a/shared/challenges_markdown/three/part_two.md +++ b/shared/challenges_markdown/three/part_two.md @@ -35,10 +35,6 @@ TODO: remove the "check answer" button alert('Are sending a car or a damn truck??? (max 2MB)'); return; } - input.files = file instanceof FileList ? file : new DataTransfer().files; - if (!(input.files && input.files[0])) { - // DataTransfer trick didn't work, set via the drop path - } label.classList.add('hidden'); fileName.classList.remove('hidden'); fileName.textContent = 'Uploading ' + file.name + '...'; diff --git a/shared/src/advent/challenges/day_three/repo.rs b/shared/src/advent/challenges/day_three/repo.rs index 50c2152..a6e1a1f 100644 --- a/shared/src/advent/challenges/day_three/repo.rs +++ b/shared/src/advent/challenges/day_three/repo.rs @@ -98,7 +98,7 @@ pub async fn inspect_car( let record = repo .get_raw(&key) .await? - .ok_or(CarFail::BadCar("missing record".into()))?; + .ok_or(CarFail::BadCar("Missing record. Double-check the collection and rkey?".into()))?; Ok(record) }