|
Last change
on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 12 days ago |
|
Fix frontend appearance
|
-
Property mode
set to
100644
|
|
File size:
479 bytes
|
| Rev | Line | |
|---|
| [9af201e] | 1 | 'use strict'
|
|---|
| 2 |
|
|---|
| 3 | module.exports = { create }
|
|---|
| 4 |
|
|---|
| 5 | function create (actual, expected, line, column) {
|
|---|
| 6 | const error = new Error(
|
|---|
| 7 | /* eslint-disable prefer-template */
|
|---|
| 8 | 'JSON error: encountered `' + actual +
|
|---|
| 9 | '` at line ' + line +
|
|---|
| 10 | ', column ' + column +
|
|---|
| 11 | ' where `' + expected +
|
|---|
| 12 | '` was expected.'
|
|---|
| 13 | /* eslint-enable prefer-template */
|
|---|
| 14 | )
|
|---|
| 15 |
|
|---|
| 16 | error.actual = actual
|
|---|
| 17 | error.expected = expected
|
|---|
| 18 | error.lineNumber = line
|
|---|
| 19 | error.columnNumber = column
|
|---|
| 20 |
|
|---|
| 21 | return error
|
|---|
| 22 | }
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.