refactor: remove source and location in snafu display (#2428)

* refactor: remove source pt 1

* refactor: remove source pt 2

* refactor: remove source pt 3

* refactor: remove location pt 1

* refactor: remove location pt 2

* chore: remove rustc files

* chore: fix error case

* chore: fix test

* chore: fix test

* chore: fix cr issue

Co-authored-by: fys <40801205+fengys1996@users.noreply.github.com>

---------

Co-authored-by: fys <40801205+fengys1996@users.noreply.github.com>
This commit is contained in:
shuiyisong
2023-09-21 10:55:24 +08:00
committed by GitHub
parent 9863e501f1
commit 20f4f7971a
51 changed files with 680 additions and 1031 deletions

View File

@@ -248,7 +248,8 @@ pub async fn test_sql_api(store_type: StorageType) {
let body = serde_json::from_str::<JsonResponse>(&res.text().await).unwrap();
assert!(!body.success());
let _ = body.execution_time_ms().unwrap();
assert!(body.error().unwrap().contains("Table not found"));
// TODO(shuiyisong): fix this when return source err msg to client side
// assert!(body.error().unwrap().contains("Table not found"));
// test database given
let res = client