faker-ruby/faker · error · ArgumentError
Sources quoted in sayings can be left blank or #{sourced_say
Error message
Sources quoted in sayings can be left blank or #{sourced_sayings.join(', ')} What it means
Error "Sources quoted in sayings can be left blank or #{sourced_sayings.join(', ')}" thrown in faker-ruby/faker.
Source
Thrown at lib/faker/books/dune.rb:114
# @return [String]
#
# @example
# Faker::Books::Dune.saying #=> "You do not beg the sun for mercy."
# @example
# Faker::Books::Dune.saying(source: "fremen")
# #=> "May thy knife chip and shatter."
#
# @faker.version 1.9.3
def saying(source: nil)
sourced_sayings = translate('faker.dune.sayings').keys
if source.nil?
source = sample(sourced_sayings).to_s
else
source = source.to_s.downcase
unless sourced_sayings.include?(source.to_sym)
raise ArgumentError,
"Sources quoted in sayings can be left blank or #{sourced_sayings.join(', ')}"
end
end
fetch("dune.sayings.#{source}")
end
end
end
end
end
View on GitHub (pinned to cca4184947)
When it happens
Trigger: Thrown at lib/faker/books/dune.rb:114 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of faker-ruby/faker@cca4184947 (2026-08-21).
Data as JSON: /api/errors/60d6443a6b45dea4.
Report an issue: GitHub.