d3b92593d5
- Create Axios-based API client with sources, jobs, and dashboard endpoints - Add responsive Layout component with navigation sidebar - Set up React Router with Dashboard, Backups, and Settings routes - Configure TanStack Query provider with default options - Use lucide-react for navigation icons
13 lines
408 B
JavaScript
13 lines
408 B
JavaScript
import { createCustomError } from '../utils/create-custom-error.js';
|
|
|
|
export function SyntaxError(message, input, offset) {
|
|
return Object.assign(createCustomError('SyntaxError', message), {
|
|
input,
|
|
offset,
|
|
rawMessage: message,
|
|
message: message + '\n' +
|
|
' ' + input + '\n' +
|
|
'--' + new Array((offset || input.length) + 1).join('-') + '^'
|
|
});
|
|
};
|