Skip to content

Commit

Permalink
Merge pull request #605 from leoafarias/fix/better-linting-url
Browse files Browse the repository at this point in the history
Updated linting url
  • Loading branch information
leoafarias authored Feb 12, 2024
2 parents 0e3e903 + 9b66f1e commit 0050c7e
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions lib/src/workflows/use_version.workflow.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 0050c7e

Please sign in to comment.