1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-08-07 02:42:48 +03:00

Improved error message formatting in the shell. Distinguish between

"Parse errors" and "Runtime errors".

FossilOrigin-Name: ae3e322a029952f575e49c73fb50b46bbea55be6792cc225cb94f5e0cbd046d9
This commit is contained in:
drh
2022-02-08 11:52:45 +00:00
parent e1c4743121
commit 3e46db21d4
5 changed files with 31 additions and 20 deletions

View File

@@ -63,7 +63,7 @@ do_test shell2-1.3 {
UPDATE OR REPLACE t5 SET a = 4 WHERE a = 1;
}
} {1 {Error: near line 9: stepping, too many levels of trigger recursion (1)}}
} {1 {Runtime error near line 9: too many levels of trigger recursion (1)}}

View File

@@ -98,7 +98,7 @@ do_test shell3-2.6 {
} {0 {}}
do_test shell3-2.7 {
catchcmd "foo.db" "CREATE TABLE"
} {1 {Error: near line 1: in prepare, incomplete input (1)}}
} {1 {Parse error near line 1: incomplete input (1)}}
#----------------------------------------------------------------------------