mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-10-30 09:33:39 +01:00
Better error messages for memory & swap
This commit is contained in:
@@ -10,9 +10,9 @@
|
||||
|
||||
static void printMemory(FFinstance* instance, const char* name, const FFModuleArgs* moduleArgs, const FFMemoryStorage* storage)
|
||||
{
|
||||
if(storage->bytesUsed == 0 && storage->bytesTotal == 0)
|
||||
if(storage->error.length > 0)
|
||||
{
|
||||
ffPrintError(instance, name, 0, moduleArgs, "Failed to detect memory");
|
||||
ffPrintError(instance, name, 0, moduleArgs, "%s", storage->error.chars);
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user