VoltaireNoir / blight

A hassle-free CLI utility/library to manage backlight on Linux; one that plays well with hybrid GPU configuration and proprietary drivers.
23 stars 1 forks source link

Handle lock-file error instead of panicking #9

Closed VoltaireNoir closed 6 months ago

VoltaireNoir commented 6 months ago

This fixes #8

Summary

Old behavior: expect was called on places that would cause an error while acquiring lock, which would result in a panic with little information on how to deal with the problem directly.

New behavior: errors are handled and the user is presented with a simpler message with a tip telling the user to try manually remove the lock file to fix the error. image