1
0
mirror of https://github.com/sqlite/sqlite.git synced 2026-01-06 08:01:16 +03:00

Do not show the error code number of CLI error messages unless the error

is something other than 1 (SQLITE_ERROR).

FossilOrigin-Name: b471601892df98c5103bb55132bbdecf3e4dfc428aaecc47bfec1e1d51e583c7
This commit is contained in:
drh
2022-02-08 12:13:16 +00:00
parent 3e46db21d4
commit 633c798283
6 changed files with 28 additions and 21 deletions

View File

@@ -68,7 +68,7 @@ do_test shell3-1.6 {
} {0 {}}
do_test shell3-1.7 {
catchcmd "foo.db \"CREATE TABLE\""
} {1 {Error: in prepare, incomplete input (1)}}
} {1 {Error: in prepare, incomplete input}}
#----------------------------------------------------------------------------
# shell3-2.*: Basic tests for running SQL file from command line.
@@ -98,7 +98,7 @@ do_test shell3-2.6 {
} {0 {}}
do_test shell3-2.7 {
catchcmd "foo.db" "CREATE TABLE"
} {1 {Parse error near line 1: incomplete input (1)}}
} {1 {Parse error near line 1: incomplete input}}
#----------------------------------------------------------------------------