* Constructs an error with a pointer to an URL with more information. * @param {String} id the error ID that maps to an ID on a web page. * @param {String} message human readable error. * @param {Error} [err] the original error, if there is one. * * @returns {Error}
(id, msg, err, requireModules)
| 163 | * @returns {Error} |
| 164 | */ |
| 165 | function makeError(id, msg, err, requireModules) { |
| 166 | var e = new Error(msg + '\nhttp://requirejs.org/docs/errors.html#' + id); |
| 167 | e.requireType = id; |
| 168 | e.requireModules = requireModules; |
| 169 | if (err) { |
| 170 | e.originalError = err; |
| 171 | } |
| 172 | return e; |
| 173 | } |
| 174 | |
| 175 | if (typeof define !== 'undefined') { |
| 176 | //If a define is already in play via another AMD loader, |
no outgoing calls
no test coverage detected
searching dependent graphs…