* 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)
| 165 | * @returns {Error} |
| 166 | */ |
| 167 | function makeError(id, msg, err, requireModules) { |
| 168 | var e = new Error(msg + '\nhttps://requirejs.org/docs/errors.html#' + id); |
| 169 | e.requireType = id; |
| 170 | e.requireModules = requireModules; |
| 171 | if (err) { |
| 172 | e.originalError = err; |
| 173 | } |
| 174 | return e; |
| 175 | } |
| 176 | |
| 177 | if (typeof define !== 'undefined') { |
| 178 | //If a define is already in play via another AMD loader, |
no outgoing calls
no test coverage detected
searching dependent graphs…