diff --git a/Userland/Utilities/arp.cpp b/Userland/Utilities/arp.cpp index bef0fad522..6b51cad357 100644 --- a/Userland/Utilities/arp.cpp +++ b/Userland/Utilities/arp.cpp @@ -91,7 +91,12 @@ ErrorOr serenity_main(Main::Arguments arguments) } auto file_contents = file->read_all(); - auto json = JsonValue::from_string(file_contents).release_value_but_fixme_should_propagate_errors(); + auto json_or_error = JsonValue::from_string(file_contents); + if (json_or_error.is_error()) { + warnln("Failed to decode JSON: {}", json_or_error.error()); + return 1; + } + auto json = json_or_error.release_value(); Vector sorted_regions = json.as_array().values(); quick_sort(sorted_regions, [](auto& a, auto& b) {