Skip to content

Commit

Permalink
scripts: image_customization_lib: make error messages lowercase
Browse files Browse the repository at this point in the history
Error messages generated by Lua usually start with a lowercase letter.
Let's make our own messages match.
  • Loading branch information
neocturne committed Jan 5, 2024
1 parent 7d735b5 commit 19ea520
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/image_customization_lib.lua
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ local function evaluate_device(env, dev)
function funcs.broken(broken)
assert(
type(broken) == 'boolean',
'Incorrect use of broken(): has to be a boolean value')
'incorrect use of broken(): has to be a boolean value')
add_override('broken', broken)
end

Expand All @@ -48,7 +48,7 @@ local function evaluate_device(env, dev)
function funcs.device(device_names)
assert(
type(device_names) == 'table',
'Incorrect use of device(): pass a list of device names as argument')
'incorrect use of device(): pass a list of device names as argument')

for _, device_name in ipairs(device_names) do
if device_name == dev.image then
Expand All @@ -62,7 +62,7 @@ local function evaluate_device(env, dev)
function funcs.target(target, subtarget)
assert(
type(target) == 'string',
'Incorrect use of target(): pass a target name as first argument')
'incorrect use of target(): pass a target name as first argument')

if target ~= env.BOARD then
return false
Expand Down

0 comments on commit 19ea520

Please sign in to comment.