clean up error message
Some checks failed
Generic zig build / build (push) Failing after 12s
Generic zig build / deploy (push) Has been skipped

This commit is contained in:
Emil Lerch 2026-01-05 13:44:49 -08:00
parent 87ffe7d598
commit 9bdaaa64d7
Signed by: lobo
GPG key ID: A7B62D657EF764F8

View file

@ -72,7 +72,7 @@ pub fn init(allocator: std.mem.Allocator, identifying_email: ?[]const u8) !MetNo
const email = identifying_email orelse blk: {
const env_email = std.process.getEnvVarOwned(allocator, "METNO_TOS_IDENTIFYING_EMAIL") catch |err| {
if (err == error.EnvironmentVariableNotFound) {
std.log.err("Met.no Terms of Service require identification. Set METNO_TOS_IDENTIFYING_EMAIL environment variable. See https://api.met.no/doc/TermsOfService", .{});
std.log.err("Met.no Terms of Service require identification. Set METNO_TOS_IDENTIFYING_EMAIL environment variable", .{});
std.log.err("See \x1b]8;;https://api.met.no/doc/TermsOfService\x1b\\https://api.met.no/doc/TermsOfService\x1b]8;;\x1b\\ for more information", .{});
return MissingIdentificationError;
}