Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Custom contracts errors with many user defined contracts not readable #8

Merged
merged 1 commit into from

2 participants

@TobiaszCudnik

Custom contracts errors with many user defined contracts aren't readable, mostly inside objects.

This rough patch adds some newlines to make it better, but wven with it it's quite complex in some cases.

@disnet disnet merged commit 8b7eed5 into from
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Mar 11, 2012
  1. @TobiaszCudnik
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  src/contracts.coffee
View
2  src/contracts.coffee
@@ -424,7 +424,7 @@ object = (objContract, options = {}, name) ->
propName + " : " + obj[propName].value?.cname
, this
- "{" + props.join(", ") + "}"
+ "{\n " + props.join(",\n ") + "\n}"
else
name
Something went wrong with that request. Please try again.