[FIX] *: move OwlError to common

This commit moves OwlError to its own file in the new common folder
such that it is no longer associated with the runtime.
This commit is contained in:
Julien Carion (juca)
2023-07-20 11:15:31 +02:00
committed by Géry Debongnie
parent 9b1c270501
commit 9b1ec5dc0e
23 changed files with 30 additions and 26 deletions
+1 -1
View File
@@ -29,7 +29,7 @@ import {
Attrs,
EventHandlers,
} from "./parser";
import { OwlError } from "../runtime/error_handling";
import { OwlError } from "../common/owl_error";
type BlockType = "block" | "text" | "multi" | "list" | "html" | "comment";
const whitespaceRE = /\s+/g;
+1 -1
View File
@@ -2,7 +2,7 @@ import type { TemplateSet } from "../runtime/template_set";
import type { BDom } from "../runtime/blockdom";
import { CodeGenerator, Config } from "./code_generator";
import { parse } from "./parser";
import { OwlError } from "../runtime";
import { OwlError } from "../common/owl_error";
export type Template = (context: any, vnode: any, key?: string) => BDom;
+1 -1
View File
@@ -1,4 +1,4 @@
import { OwlError } from "../runtime/error_handling";
import { OwlError } from "../common/owl_error";
/**
* Owl QWeb Expression Parser
+1 -1
View File
@@ -1,4 +1,4 @@
import { OwlError } from "../runtime/error_handling";
import { OwlError } from "../common/owl_error";
// -----------------------------------------------------------------------------
// AST Type definition