Skip to content

Commit

Permalink
Merge pull request #1 from ovr/better-debug-support
Browse files Browse the repository at this point in the history
Feature: Improve debug support
  • Loading branch information
StyleT authored Feb 14, 2018
2 parents 8cddc58 + 268da26 commit 443d7c9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions dist/acl.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.JsAcl = f()}})(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(_dereq_,module,exports){
(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.JsAcl = f()}})(function(){var define,module,exports;return (function(){function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s}return e})()({1:[function(_dereq_,module,exports){
'use strict';

/**
Expand Down Expand Up @@ -447,7 +447,7 @@ function Acl() {
*/
self.getResource = function (resource) {
if (!self.hasResource(resource)) {
throw new Error("Resource '$resourceId' not found");
throw new Error("Resource '" + resource + "' not found");
}

if (resource instanceof Object && typeof resource.getResourceId === 'function') {
Expand Down Expand Up @@ -531,7 +531,7 @@ function Acl() {
*/
self.removeResource = function (resource) {
if (!self.hasResource(resource)) {
throw new Error("Resource '$resourceId' not found");
throw new Error("Resource '" + resource + "' not found");
}

if (resource instanceof Object && typeof resource.getResourceId === 'function') {
Expand Down
4 changes: 2 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ function Acl() {
*/
self.getResource = function (resource) {
if (!self.hasResource(resource)) {
throw new Error("Resource '$resourceId' not found");
throw new Error("Resource '" + resource + "' not found");
}

if (resource instanceof Object && typeof resource.getResourceId === 'function') {
Expand Down Expand Up @@ -404,7 +404,7 @@ function Acl() {
*/
self.removeResource = function (resource) {
if (!self.hasResource(resource)) {
throw new Error("Resource '$resourceId' not found");
throw new Error("Resource '" + resource + "' not found");
}

if (resource instanceof Object && typeof resource.getResourceId === 'function') {
Expand Down

0 comments on commit 443d7c9

Please sign in to comment.