From df9576bbafc5a838ee4e9a7c1e502b272c39196f Mon Sep 17 00:00:00 2001 From: Fabian Stamm Date: Sat, 16 Jul 2022 21:31:45 +0000 Subject: [PATCH] Add better error messages --- src/targets/rust.ts | 2 +- src/targets/zig.ts | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/targets/rust.ts b/src/targets/rust.ts index c32d75f..cafb63d 100644 --- a/src/targets/rust.ts +++ b/src/targets/rust.ts @@ -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); diff --git a/src/targets/zig.ts b/src/targets/zig.ts index aaf9d49..4b3bb88 100644 --- a/src/targets/zig.ts +++ b/src/targets/zig.ts @@ -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 );