Skip to content

Commit

Permalink
fix: replace non-existent value variable with the existent subject va…
Browse files Browse the repository at this point in the history
…riable.

I also changed some spacing in a few places
  • Loading branch information
louiss0 committed Oct 17, 2024
1 parent 6cc13a8 commit 852d1a5
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions modules/yadm/mod.nu
Original file line number Diff line number Diff line change
Expand Up @@ -284,10 +284,12 @@ export module config {

}
_ => {

error make {
msg:"Invalid Configuration Value"
help:"When it comes to cofiguaration a value must be a string boolean number or a list of strings or numbers"
}
}

}

}
Expand Down Expand Up @@ -582,7 +584,7 @@ export def transcrypt [

export def main [subject:string@get_completions_for_subject, ] {

if($subject not-in $possible_subjects) {
if($subject not-in $possible_subjects) {

let joined_possible_subjects = $possible_subjects
| str join ","
Expand All @@ -591,7 +593,7 @@ export def transcrypt [
msg: "Invalid Argument",
label: "This value is incorrect!"
span:(metadata $subject).span
help: $"This value ($value) isn't correct the ones are ($joined_possible_subjects). "
help: $"This value ($subject) isn't correct the ones are ($joined_possible_subjects). "
}
}

Expand Down

0 comments on commit 852d1a5

Please sign in to comment.