Made fatal errors clearer and fixed bug in fetch script

This commit is contained in:
EnumDev 2025-02-06 20:43:16 +02:00
parent 0d3d3fafb2
commit ce9813a2af
3 changed files with 5 additions and 2 deletions

View File

@ -43,3 +43,6 @@ if [ -n "$DISPLAY_PROTOCOL" ]; then
done
fi
[ -n "$DE_WM" ] && echo -e "${C3}DE/WM: ${C4}${DE_WM}"
# Exiting with error code 0 in case the condition above returns 1
exit 0

View File

@ -260,7 +260,7 @@ func runStormfetch() {
}
out, err := cmd.Output()
if err != nil {
log.Fatal(err)
log.Fatalf("Error: Could not run fetch script: %s", err)
}
// Print Distro Information
maxWidth := 0

View File

@ -244,7 +244,7 @@ func GetShell() string {
func GetDEWM() string {
processes, err := ps.Processes()
if err != nil {
log.Fatal(err)
log.Fatalf("Error: could not get processes: %s", err)
}
var executables []string
for _, process := range processes {