Skip to content

Instantly share code, notes, and snippets.

@chriseppstein
Created November 3, 2011 02:01
Show Gist options
  • Save chriseppstein/1335580 to your computer and use it in GitHub Desktop.
Save chriseppstein/1335580 to your computer and use it in GitHub Desktop.
# add this to your compass config.
module Sass::Script::Functions
def syntax_error(message)
raise Sass::SyntaxError, message.value
end
declare :syntax_error, [:message]
end
@debug syntax-error("Whatcha talkin' about Willis!");
@jlong
Copy link

jlong commented Nov 3, 2011

Very nice!

@Snugug
Copy link

Snugug commented Nov 3, 2011

Glad this is going to use!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment