smart
smart
DDeno
Created by smart on 6/10/2024 in #help
Full stack traces from tests
Thanks I'll give that a try!
7 replies
DDeno
Created by smart on 6/10/2024 in #help
Full stack traces from tests
I noticed that the code to abbreviate errors is in fn abbreviate_test_error(js_error: &JsError) -> JsError { in deno/cli/tools/test/fmt.rs. It appears to support filtering user code errors, but I wonder why it's not working for me....
7 replies
DDeno
Created by smart on 6/10/2024 in #help
Full stack traces from tests
Here is a full error.stack trace when I catch the error and re-throw it:
PostgresError: column "signed_inat" of relation "users" does not exist
at ErrorResponse (https://deno.land/x/postgresjs@v3.4.4/src/connection.js:791:26)
at handle (https://deno.land/x/postgresjs@v3.4.4/src/connection.js:477:6)
at data (https://deno.land/x/postgresjs@v3.4.4/src/connection.js:318:9)
at https://deno.land/x/postgresjs@v3.4.4/polyfills.js:138:30
at Array.forEach (<anonymous>)
at call (https://deno.land/x/postgresjs@v3.4.4/polyfills.js:138:16)
at success (https://deno.land/x/postgresjs@v3.4.4/polyfills.js:98:9)
at eventLoopTick (ext:core/01_core.js:168:7)
at cachedError (https://deno.land/x/postgresjs@v3.4.4/src/query.js:170:23)
at new Query (https://deno.land/x/postgresjs@v3.4.4/src/query.js:36:24)
at UserService.sql (https://deno.land/x/postgresjs@v3.4.4/src/index.js:113:11)
at UserService.signIn (file:///Users/mario/github/site/deno/src/services/user-service.ts:123:41) {
PostgresError: column "signed_inat" of relation "users" does not exist
at ErrorResponse (https://deno.land/x/postgresjs@v3.4.4/src/connection.js:791:26)
at handle (https://deno.land/x/postgresjs@v3.4.4/src/connection.js:477:6)
at data (https://deno.land/x/postgresjs@v3.4.4/src/connection.js:318:9)
at https://deno.land/x/postgresjs@v3.4.4/polyfills.js:138:30
at Array.forEach (<anonymous>)
at call (https://deno.land/x/postgresjs@v3.4.4/polyfills.js:138:16)
at success (https://deno.land/x/postgresjs@v3.4.4/polyfills.js:98:9)
at eventLoopTick (ext:core/01_core.js:168:7)
at cachedError (https://deno.land/x/postgresjs@v3.4.4/src/query.js:170:23)
at new Query (https://deno.land/x/postgresjs@v3.4.4/src/query.js:36:24)
at UserService.sql (https://deno.land/x/postgresjs@v3.4.4/src/index.js:113:11)
at UserService.signIn (file:///Users/mario/github/site/deno/src/services/user-service.ts:123:41) {
Here is the error from the test output:
user services ... users can sign in with email and password => https://jsr.io/@std/testing/0.224.0/_test_suite.ts:323:15
error: PostgresError: column "signed_inat" of relation "users" does not exist
const error = Errors.postgres(parseError(x))
^
at ErrorResponse (https://deno.land/x/postgresjs@v3.4.4/src/connection.js:791:26)
at handle (https://deno.land/x/postgresjs@v3.4.4/src/connection.js:477:6)
at data (https://deno.land/x/postgresjs@v3.4.4/src/connection.js:318:9)
at https://deno.land/x/postgresjs@v3.4.4/polyfills.js:138:30
at Array.forEach (<anonymous>)
at call (https://deno.land/x/postgresjs@v3.4.4/polyfills.js:138:16)
at success (https://deno.land/x/postgresjs@v3.4.4/polyfills.js:98:9)
user services ... users can sign in with email and password => https://jsr.io/@std/testing/0.224.0/_test_suite.ts:323:15
error: PostgresError: column "signed_inat" of relation "users" does not exist
const error = Errors.postgres(parseError(x))
^
at ErrorResponse (https://deno.land/x/postgresjs@v3.4.4/src/connection.js:791:26)
at handle (https://deno.land/x/postgresjs@v3.4.4/src/connection.js:477:6)
at data (https://deno.land/x/postgresjs@v3.4.4/src/connection.js:318:9)
at https://deno.land/x/postgresjs@v3.4.4/polyfills.js:138:30
at Array.forEach (<anonymous>)
at call (https://deno.land/x/postgresjs@v3.4.4/polyfills.js:138:16)
at success (https://deno.land/x/postgresjs@v3.4.4/polyfills.js:98:9)
7 replies