diff --git a/lib/src/workflows/use_version.workflow.dart b/lib/src/workflows/use_version.workflow.dart index eadb7602..a1e50b0b 100644 --- a/lib/src/workflows/use_version.workflow.dart +++ b/lib/src/workflows/use_version.workflow.dart @@ -315,15 +315,19 @@ void _manageVscodeSettings(Project project) { if (sanitizedContent.isNotEmpty) { currentSettings = json.decode(sanitizedContent); } - } on FormatException { + } on FormatException catch (_, stackTrace) { final relativePath = relative( vscodeSettingsFile.path, from: ctx.workingDirectory, ); - throw AppDetailedException( - 'Error parsing $kVsCode settings at $relativePath', - 'Please use a tool like https://jsonformatter.curiousconcept.com to validate and fix it', + + Error.throwWithStackTrace( + AppDetailedException( + 'Error parsing $kVsCode settings at $relativePath', + 'Please use a tool like https://jsonlint.com to validate and fix it', + ), + stackTrace, ); } } else {