introduced new exception classes for structured error reporting

This commit is contained in:
zadam
2022-12-09 16:13:22 +01:00
parent 342ae6e5e2
commit dfb462cf35
35 changed files with 48 additions and 49 deletions

View File

@@ -6,8 +6,8 @@ const searchService = require('../../services/search/services/search');
const bulkActionService = require("../../services/bulk_actions");
const cls = require("../../services/cls");
const {formatAttrForSearch} = require("../../services/attribute_formatter");
const ValidationError = require("../../public/app/services/validation_error.js");
const NotFoundError = require("../../errors/not_found_error.js");
const ValidationError = require("../../errors/validation_error");
const NotFoundError = require("../../errors/not_found_error");
function searchFromNote(req) {
const note = becca.getNote(req.params.noteId);