Skip to content

Commit

Permalink
mz: print api. prefix warning comment to stderr
Browse files Browse the repository at this point in the history
  • Loading branch information
Rami Chowdhury committed Aug 31, 2023
1 parent 60eeefe commit 216ca8c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/mz/src/context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -111,11 +111,11 @@ impl Context {
// Prints a warning comment about the cloud endpoint
/// TODO: Remove after releasing version 0.1.6 and give anyone using `mz` time to apply the fix.
pub fn print_warning_comment(&self) {
println!("⚠️ \t Warning\t ⚠️ \nStarting from version 0.1.3, it is a must to include the 'api.' subdomain in the cloud endpoint.");
println!("\nWrong: cloud-endpoint = \"https://staging.cloud.materialize.com\"");
println!("Right: cloud-endpoint = \"https://api.staging.cloud.materialize.com\"");
println!("\nPlease address this in your config before upcoming releases.");
println!("Config path: ~/.config/materialize/mz.toml.\n");
eprintln!("⚠️ \t Warning\t ⚠️ \nStarting from version 0.1.3, it is a must to include the 'api.' subdomain in the cloud endpoint.");
eprintln!("\nWrong: cloud-endpoint = \"https://staging.cloud.materialize.com\"");
eprintln!("Right: cloud-endpoint = \"https://api.staging.cloud.materialize.com\"");
eprintln!("\nPlease address this in your config before upcoming releases.");
eprintln!("Config path: ~/.config/materialize/mz.toml.\n");
}

/// Verifies the cloud endpoint is ok.
Expand Down

0 comments on commit 216ca8c

Please sign in to comment.