diff options
-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 |