steampipe icon indicating copy to clipboard operation
steampipe copied to clipboard

Show timing info even if query returns an error

Open e-gineer opened this issue 2 years ago • 0 comments

I'm troubleshooting some query errors, and sometimes they take a long time to return (~4mins).

I feel that the timing status line should be shown (if possible) even for errors, telling me how long Steampipe took to actually generate the error message.

So this:

> select * from aws_dynamodb_table
Error: ExpiredTokenException: The security token included in the request is expired
	status code: 400, request id: TKRNEDLV0P02OUGN6GK9FGQE5JVV4KQNSO5AEMVJF66Q9ASUAAJG (SQLSTATE HV000)
> 

Should be something like this:

> select * from aws_dynamodb_table
Error: ExpiredTokenException: The security token included in the request is expired
	status code: 400, request id: TKRNEDLV0P02OUGN6GK9FGQE5JVV4KQNSO5AEMVJF66Q9ASUAAJG (SQLSTATE HV000)
> 

Time: 4 mins. Rows fetched: 0. Hydrate calls: 0.

e-gineer avatar Aug 15 '22 15:08 e-gineer