Skip to content

Commit

Permalink
fix broken formatting strings in error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
fluxionary committed Jan 12, 2024
1 parent 8f7e2e8 commit 9e586ae
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 4 deletions.
3 changes: 3 additions & 0 deletions .check_date.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/usr/bin/env bash
grep $(date -I) mod.conf
exit $?
7 changes: 7 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,13 @@ repos:
pass_filenames: true
exclude: .pre-commit-config.yaml
fail_fast: true
- id: date_version
name: date version
language: script
entry: .check_date.sh
files: mod.conf
always_run: true
fail_fast: true
- id: stylua
name: stylua
language: system
Expand Down
4 changes: 2 additions & 2 deletions mod.conf
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ website = https://content.minetest.net/packages/rheo/smartshop/
author = fluxionary
license = LGPL-3.0-or-later
media_license = CC-BY-SA-3.0
version = 2023-05-18
min_minetest_version = 5.7.0
version = 2024-01-12
min_minetest_version = 5.8.0
supported_games = *
depends = fmod, futil
optional_depends = currency, default, mesecons, mesecons_mvps, petz, node_entity_queue, pipeworks, tubelib
4 changes: 2 additions & 2 deletions util.lua
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ function util.check_player_add_remainder(player_inv, shop, remainder)
local player_name = player_inv.name

util.error(
"ERROR: %s lost %q on add using %'s shop @ %s",
"ERROR: %s lost %q on add using %s's shop @ %s",
player_name,
remainder:to_string(),
shop:get_owner(),
Expand All @@ -93,7 +93,7 @@ function util.check_player_remove_remainder(player_inv, shop, remainder, expecte
local player_name = player_inv.name

util.error(
"ERROR: %s lost %q of %q on remove from %'s shop @ %s",
"ERROR: %s lost %q of %q on remove from %s's shop @ %s",
player_name,
remainder:to_string(),
expected:to_string(),
Expand Down

0 comments on commit 9e586ae

Please sign in to comment.