Skip to content
This repository has been archived by the owner on Nov 8, 2022. It is now read-only.

Snapctl error message on Task should truncate #1042

Closed
lynxbat opened this issue Jun 30, 2016 · 0 comments
Closed

Snapctl error message on Task should truncate #1042

lynxbat opened this issue Jun 30, 2016 · 0 comments

Comments

@lynxbat
Copy link
Contributor

lynxbat commented Jun 30, 2016

build/bin/snapctl task list                                                                                                              ✭
ID                   NAME                        STATE       HIT     MISS    FAIL    CREATED         LAST FAILURE
0c9ad69d-f8a2-409c-b162-de6f3e3bd4d5     Task-0c9ad69d-f8a2-409c-b162-de6f3e3bd4d5   Disabled    10      0   10      2:16PM 6-30-2016    Publish call error: Post http://127.0.0.1:8086/write?consistency=&db=db_test&precision=s&rp=default: dial tcp 127.0.0.1:8086: getsockopt: connection refused

The FAIL message causes line wrapping and is either truncating really long or not truncated.

It would be better to have it truncate to keep the table consistent and have the user use a specific task info to see details like fail messages.

@snapbot snapbot added the tracked label Jul 6, 2016
kjlyon pushed a commit to kjlyon/snap that referenced this issue Aug 29, 2016
Error message size adjusts based on size of terminal so that it does not wrap.
kjlyon pushed a commit to kjlyon/snap that referenced this issue Aug 29, 2016
Error message size adjusts based on size of terminal so that it does not wrap.
kjlyon pushed a commit to kjlyon/snap that referenced this issue Aug 30, 2016
Error message size adjusts based on size of terminal so that it does not wrap.
kjlyon pushed a commit to kjlyon/snap that referenced this issue Aug 30, 2016
Error message size adjusts based on size of terminal so that it does not wrap.
candysmurf added a commit that referenced this issue Aug 30, 2016
Fixed Bug #1042 Snapctl error message should truncate
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants