lib/sewing_kit/webpack/manifest/base.rb in sewing_kit-0.27.1 vs lib/sewing_kit/webpack/manifest/base.rb in sewing_kit-0.27.2
- old
+ new
@@ -20,13 +20,15 @@
metadata['assets']
end
def load_metadata_from_node
begin
- stdout, * = Open3.capture3('node_modules/.bin/sewing-kit', 'manifest', "--mode=#{mode}")
+ stdout, stderr, status = Open3.capture3('node_modules/.bin/sewing-kit', 'manifest', "--mode=#{mode}")
rescue => e
raise NodeSewingKitNotRunnable.new(mode, e)
end
+
+ raise NodeSewingKitManifestMissing.new(mode, stderr) unless status.success?
begin
JSON.parse(stdout)
rescue => e
raise ManifestParseError, e