diff options
Diffstat (limited to 'lib/errors/importErrors.ml')
-rw-r--r-- | lib/errors/importErrors.ml | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/errors/importErrors.ml b/lib/errors/importErrors.ml index 04f9deb..782291e 100644 --- a/lib/errors/importErrors.ml +++ b/lib/errors/importErrors.ml @@ -25,6 +25,7 @@ exception SqlError of Sqlite3.Rc.t exception MisplacedWindow exception Unknown_source of string exception Unknown_extension of string +exception UnknowFunction of string exception Cycle of string list (** Cycle between the dpendencies *) @@ -53,6 +54,9 @@ let repr_error = function (ImportDataTypes.Types.string_of_t expected) expression | Unknown_extension ext -> Printf.sprintf "Unknown file extension %s" ext + | UnknowFunction name -> + Printf.sprintf "Unknown function or wrong number of arguments for '%s'" + name | Cycle deps -> Printf.sprintf "Cycle between the dependencies : %s" (String.concat ~sep:"," deps) |