Skip to content

Commit

Permalink
Make executable errors a little nicer.
Browse files Browse the repository at this point in the history
  • Loading branch information
nex3 committed Aug 9, 2010
1 parent 7ead6a4 commit 635cb51
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/haml/exec.rb
Expand Up @@ -161,7 +161,7 @@ def handle_load_error(err)
raise err if @options[:trace] || dep.nil? || dep.empty?
$stderr.puts <<MESSAGE
Required dependency #{dep} not found!
Run "gem install #{dep}" to get it.
Run "gem install #{dep}" to get it.
Use --trace for backtrace.
MESSAGE
exit 1
Expand Down Expand Up @@ -390,8 +390,8 @@ def watch_or_update

raise <<MSG if @args.empty?
What files should I watch? Did you mean something like:
sass --watch input.sass:output.css
sass --watch input-dir:output-dir
sass --watch input.sass:output.css
sass --watch input-dir:output-dir
MSG

if !colon_path?(@args[0]) && probably_dest_dir?(@args[1])
Expand All @@ -404,7 +404,7 @@ def watch_or_update
end
raise <<MSG if err
File #{@args[1]} #{err}.
Did you mean: sass #{flag} #{@args[0]}:#{@args[1]}
Did you mean: sass #{flag} #{@args[0]}:#{@args[1]}
MSG
end

Expand Down

0 comments on commit 635cb51

Please sign in to comment.