diff --git a/lib/haml/exec.rb b/lib/haml/exec.rb index afcf4948..aa0cd47f 100644 --- a/lib/haml/exec.rb +++ b/lib/haml/exec.rb @@ -304,6 +304,20 @@ END require 'sass/plugin' ::Sass::Plugin.options[:unix_newlines] = @options[:unix_newlines] + if @args[1] && !@args[0].include?(':') + flag = @options[:update] ? "--update" : "--watch" + err = + if !File.exist?(@args[1]) + "doesn't exist" + elsif @args[1] =~ /\.css$/ + "is a CSS file" + end + raise <