lib/sewing_kit/webpack/webpack.rb in sewing_kit-0.122.0 vs lib/sewing_kit/webpack/webpack.rb in sewing_kit-0.122.1
- old
+ new
@@ -1,11 +1,7 @@
# frozen_string_literal: true
-def highlight(message)
- "\u001b[1m\u001b[37m#{message}\u001b[39m\u001b[22m"
-end
-
module SewingKit
module Webpack
# Raised if the node sewing-kit isn't installed/runnable.
class NodeSewingKitNotRunnable < StandardError
def initialize(mode, cause = nil)
@@ -21,9 +17,13 @@
super(
"sewing-kit is not runnable.\n" \
"#{env_message}\n" +
(cause ? "Original error #{cause}" : '')
)
+ end
+
+ def highlight(message)
+ "\u001b[1m\u001b[37m#{message}\u001b[39m\u001b[22m"
end
end
end
end