From 9dcf367e911a0cf29dfb8ab5a7128d1f9cdae692 Mon Sep 17 00:00:00 2001 From: Paul Duncan Date: Tue, 19 Jul 2016 04:38:00 -0400 Subject: clean up error messages --- src/guff/theme/source-manifest.cr | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src') 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 -- cgit v1.2.3