Skip to content

Commit

Permalink
fix Stylus error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
Nathan Reid committed Apr 28, 2016
1 parent 7baa950 commit 815e5f1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions stylus-processor.js
Original file line number Diff line number Diff line change
Expand Up @@ -133,10 +133,10 @@ export default class StylusProcessor {
} catch (err) {
console.error(err);
sourceFile.file.error({
message: `CSS modules SCSS compiler error: file not found: (${importPath}): ${JSON.stringify(err, Object.getOwnPropertyNames(err))}\n`,
message: `CSS modules Stylus compiler error: file not found: (${importPath}): ${JSON.stringify(err, Object.getOwnPropertyNames(err))}\n`,
sourcePath: sourceFile.file.getDisplayPath()
});
return new Error(`CSS modules SCSS compiler error: file not found: (${importPath}): ${JSON.stringify(err, Object.getOwnPropertyNames(err))}\n`);
return new Error(`CSS modules Stylus compiler error: file not found: (${importPath}): ${JSON.stringify(err, Object.getOwnPropertyNames(err))}\n`);
}
}
}
Expand Down

0 comments on commit 815e5f1

Please sign in to comment.