Skip to content

Commit

Permalink
Merge pull request #9 from oddbird/error-handling
Browse files Browse the repository at this point in the history
Custom error-handling for existing errors
  • Loading branch information
mirisuzanne authored Jul 27, 2018
2 parents 827404c + 072ed94 commit dd88fce
Show file tree
Hide file tree
Showing 41 changed files with 1,036 additions and 269 deletions.
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
- [Core][core]:
- NEW: `ratio()` function accepts `$source` argument,
for passing in a custom source map
- NEW: Improved error-handling and messages
- NEW: Added `str-trim` and `str-split` aliases
in addition to the existing `trim` and `split`
- [Plugin: Animate][animate]
- NEW: `ease()`, `time()`, and `change()` functions all
accept `$source` argument,
Expand All @@ -29,7 +32,8 @@
- NEW: `size()`/`negative()` functions and `square()` mixin
accept `$source` argument, for passing in a custom source map
- [Plugin: Type][type]
- NEW: `font()`/`font-family()` functions and `font-family()` mixin
- NEW: `font()`/`font-family()` functions
and `font-family()`/`font-face()` mixins
accept `$source` argument,
for passing in a custom font-source map

Expand Down
6 changes: 5 additions & 1 deletion docs/CHANGELOG.html
Original file line number Diff line number Diff line change
Expand Up @@ -363,6 +363,9 @@ <h2 id="1-0-0-unreleased">1.0.0 - UNRELEASED</h2>
<ul>
<li>NEW: <code>ratio()</code> function accepts <code>$source</code> argument,
for passing in a custom source<span class="widont">&nbsp;</span>map</li>
<li>NEW: Improved error-handling and<span class="widont">&nbsp;</span>messages</li>
<li>NEW: Added <code>str-trim</code> and <code>str-split</code> aliases
in addition to the existing <code>trim</code> and <code>split</code></li>
</ul>
</li>
<li><a href="http://oddbird.net/accoutrement/docs/animate.html">Plugin: Animate</a>
Expand Down Expand Up @@ -399,7 +402,8 @@ <h2 id="1-0-0-unreleased">1.0.0 - UNRELEASED</h2>
</li>
<li><a href="http://oddbird.net/accoutrement/docs/type.html">Plugin: Type</a>
<ul>
<li>NEW: <code>font()</code>/<code>font-family()</code> functions and <code>font-family()</code> mixin
<li>NEW: <code>font()</code>/<code>font-family()</code> functions
and <code>font-family()</code>/<code>font-face()</code> mixins
accept <code>$source</code> argument,
for passing in a custom font-source<span class="widont">&nbsp;</span>map</li>
</ul>
Expand Down
94 changes: 69 additions & 25 deletions docs/color-contrast.html
Original file line number Diff line number Diff line change
Expand Up @@ -631,7 +631,7 @@ <h4 class="param-title">


<div class="param-details text-block">
<p>Provide at least two contrasting color options for <code>contrast()</code></p>
<p>Provide at least two contrasting <code>$options…</code> for comparison</p>

</div>

Expand Down Expand Up @@ -845,6 +845,40 @@ <h3 class="item-subtitle">





<div class="param-list">
<h4 class="param-title">
<span class="item-type">@function</span>

<span class="item-name">_a_error()</span>



<span class="item-note">[private]</span>
</h4>


</div>





















<div class="param-list">
Expand Down Expand Up @@ -2177,30 +2211,6 @@ <h4 class="param-title">





<div class="param-list">
<h4 class="param-title">


<span class="item-name">@error</span>




</h4>



<div class="param-details text-block">
<p><code>#{$color}</code> is not a<span class="widont">&nbsp;</span>color.</p>

</div>

</div>





</div>
Expand Down Expand Up @@ -2303,6 +2313,40 @@ <h4 class="param-title">




















<div class="param-list">
<h4 class="param-title">
<span class="item-type">@function</span>

<span class="item-name">_a_type-check()</span>



<span class="item-note">[private]</span>
</h4>


</div>





</div>

Expand Down
66 changes: 42 additions & 24 deletions docs/core-lists.html
Original file line number Diff line number Diff line change
Expand Up @@ -630,7 +630,7 @@ <h4 class="param-title">


<div class="param-details text-block">
<p>$index: #{quote($index)} is not a number for <code>_a_remove-nth</code>.</p>
<p><code>$index</code> must be a non-zero<span class="widont">&nbsp;</span>integer</p>

</div>

Expand All @@ -652,29 +652,7 @@ <h4 class="param-title">


<div class="param-details text-block">
<p>List index 0 must be a non-zero integer for <code>_a_remove-nth</code>.</p>

</div>

</div>



<div class="param-list">
<h4 class="param-title">


<span class="item-name">@error</span>




</h4>



<div class="param-details text-block">
<p>#{$state} but list is only #{length($list)} item<span class="widont">&nbsp;</span>long.</p>
<p><code>$index</code> is too large for the list<span class="widont">&nbsp;</span>length</p>

</div>

Expand Down Expand Up @@ -823,6 +801,46 @@ <h4 class="param-title">




















<div class="param-list">
<h4 class="param-title">
<span class="item-type">@function</span>

<span class="item-name">_a_error()</span>



<span class="item-note">[private]</span>
</h4>


</div>











</div>

Expand Down
Loading

0 comments on commit dd88fce

Please sign in to comment.