diff options
author | Paul Duncan <pabs@pablotron.org> | 2016-07-19 04:38:00 -0400 |
---|---|---|
committer | Paul Duncan <pabs@pablotron.org> | 2016-07-19 04:38:00 -0400 |
commit | 9dcf367e911a0cf29dfb8ab5a7128d1f9cdae692 (patch) | |
tree | 110f99b5fc18ecf8e142399d8ad98cc3c5b944da /src | |
parent | 7617445c765f805211f29a7606b20badc21e1fa1 (diff) | |
download | guff-9dcf367e911a0cf29dfb8ab5a7128d1f9cdae692.tar.bz2 guff-9dcf367e911a0cf29dfb8ab5a7128d1f9cdae692.zip |
clean up error messages
Diffstat (limited to 'src')
-rw-r--r-- | src/guff/theme/source-manifest.cr | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/guff/theme/source-manifest.cr b/src/guff/theme/source-manifest.cr index d0f847b..bfa3486 100644 --- a/src/guff/theme/source-manifest.cr +++ b/src/guff/theme/source-manifest.cr @@ -25,16 +25,16 @@ class Guff::Theme::SourceManifest raise "unknown theme format: #{r.format}" end - # check for required manifest files + # check for required metadata fields REQUIRED_METADATA_FIELDS.each do |key, re| unless r.metadata[key]? # missing field - raise "missing required metadata field: #{key}" + raise "Missing required metadata field: #{key}" end unless r.metadata[key].match(re) # invalid field format - raise "metadata field format mismatch: #{key}" + raise "Invalid format for metadata field: #{key}" end end @@ -49,7 +49,7 @@ class Guff::Theme::SourceManifest } if missing_files.size > 0 - raise "Missing #{type} in manifest: #{missing_files.join(", ")}" + raise "Missing #{type}: #{missing_files.join(", ")}" end end |