Add better error messages
This commit is contained in:
parent
7a3a4c6791
commit
df9576bbaf
@ -309,7 +309,7 @@ export class RustTarget extends CompileTarget<{ rust_crate: string }> {
|
|||||||
|
|
||||||
generateService(definition: ServiceDefinition): void {
|
generateService(definition: ServiceDefinition): void {
|
||||||
console.log(
|
console.log(
|
||||||
chalk.yellow("WARNING:"),
|
chalk.yellow("[RUST] WARNING:"),
|
||||||
"Rust support for services is WIP. Use with care!"
|
"Rust support for services is WIP. Use with care!"
|
||||||
);
|
);
|
||||||
this.generateServiceServer(definition);
|
this.generateServiceServer(definition);
|
||||||
|
@ -78,7 +78,10 @@ export class ZIGTarget extends CompileTarget<{ csharp_namespace: string }> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
generateService(definition: ServiceDefinition): void {
|
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 {
|
finalize(steps: Step[]): void {
|
||||||
@ -94,7 +97,7 @@ export class ZIGTarget extends CompileTarget<{ csharp_namespace: string }> {
|
|||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
console.warn(
|
console.warn(
|
||||||
chalk.yellow("WARNING:"),
|
chalk.yellow("[ZIG] WARNING:"),
|
||||||
"unimplemented step found:",
|
"unimplemented step found:",
|
||||||
type
|
type
|
||||||
);
|
);
|
||||||
|
Loading…
Reference in New Issue
Block a user