roole-error

Errors thrown by the Roole language

roole-error

Roole error objects

npm install roole-error;
var RooleError = require('roole-error');
throw new RooleError('message', node);

The created error object will contain a loc property which comes from node.loc.