Skip to content

Commit ea7ac2c

Browse files
committed
python: update error prompts
1 parent 968c2b3 commit ea7ac2c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

spd-eeprom.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
try:
2727
import fcntl
2828
except ImportError:
29-
print("Operating system not supported.")
29+
print("This operating system is not supported.")
3030
exit(1)
3131

3232
# To determine what functionality is present
@@ -237,7 +237,7 @@ def smbus_probe(dimm_slot = None):
237237
if smbus_idx.isdigit():
238238
smbus_idx = int(smbus_idx)
239239
else:
240-
print("SMBus adapter not found.")
240+
print("No SMBus adapter found.")
241241
sys.exit(1)
242242

243243
if dimm_slot == None:
@@ -270,7 +270,7 @@ def smbus_probe(dimm_slot = None):
270270

271271
def main():
272272
if os.getuid():
273-
print("Please run as root.")
273+
print("Please run this script as root.")
274274
sys.exit(1)
275275

276276
try:

0 commit comments

Comments
 (0)