We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 78161c3 commit b11b6b2Copy full SHA for b11b6b2
examples/group-by.md
@@ -18,7 +18,7 @@ var opts = {
18
spritePath: './css/images/',
19
groupBy: function(image) {
20
if (image.url.indexOf('shapes') === -1) {
21
- return Promise.reject();
+ return Promise.reject(new Error('Not a shape image.'));
22
}
23
24
return Promise.resolve('shapes');
src/core.js
@@ -110,7 +110,7 @@ export function prepareGroupBy(opts) {
110
return Promise.resolve(`@${image.ratio}x`);
111
112
113
+ return Promise.reject(new Error('Not a retina image.'));
114
});
115
116
0 commit comments