Add better error messages

This commit is contained in:
Fabian Stamm 2022-07-16 21:31:45 +00:00
parent 7a3a4c6791
commit df9576bbaf
2 changed files with 6 additions and 3 deletions

View File

@ -309,7 +309,7 @@ export class RustTarget extends CompileTarget<{ rust_crate: string }> {
generateService(definition: ServiceDefinition): void {
console.log(
chalk.yellow("WARNING:"),
chalk.yellow("[RUST] WARNING:"),
"Rust support for services is WIP. Use with care!"
);
this.generateServiceServer(definition);

View File

@ -78,7 +78,10 @@ export class ZIGTarget extends CompileTarget<{ csharp_namespace: string }> {
}
generateService(definition: ServiceDefinition): void {
throw new Error("Method not implemented.");
console.log(
chalk.yellow("[ZIG] WARNING:"),
"ZIG support for services is not yet there. Service generation is skipped!"
);
}
finalize(steps: Step[]): void {
@ -94,7 +97,7 @@ export class ZIGTarget extends CompileTarget<{ csharp_namespace: string }> {
break;
default:
console.warn(
chalk.yellow("WARNING:"),
chalk.yellow("[ZIG] WARNING:"),
"unimplemented step found:",
type
);