clean up error message
This commit is contained in:
parent
87ffe7d598
commit
9bdaaa64d7
1 changed files with 1 additions and 1 deletions
|
|
@ -72,7 +72,7 @@ pub fn init(allocator: std.mem.Allocator, identifying_email: ?[]const u8) !MetNo
|
||||||
const email = identifying_email orelse blk: {
|
const email = identifying_email orelse blk: {
|
||||||
const env_email = std.process.getEnvVarOwned(allocator, "METNO_TOS_IDENTIFYING_EMAIL") catch |err| {
|
const env_email = std.process.getEnvVarOwned(allocator, "METNO_TOS_IDENTIFYING_EMAIL") catch |err| {
|
||||||
if (err == error.EnvironmentVariableNotFound) {
|
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", .{});
|
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;
|
return MissingIdentificationError;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue