Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Duplicate detector] inform which file couldn't be parsed #354

Open
przemekrcloudity opened this issue Apr 6, 2023 · 0 comments
Open

[Duplicate detector] inform which file couldn't be parsed #354

przemekrcloudity opened this issue Apr 6, 2023 · 0 comments

Comments

@przemekrcloudity
Copy link
Contributor

przemekrcloudity commented Apr 6, 2023

When a duplicate detector fails to parse file, it informs the user in which line the error occurred but doesn't provide information about which file it was in.

ERROR running hardis:project:metadata:findduplicates:  Non-whitespace before first tag.
Line: 0
Column: 1
Char: a
[sfdx-hardis] hardis:project:metadata:findduplicates execution time 0:00:01.823

I think it would be helpful to inform the user about the file path that caused the error

Error reproduction steps

In some XML file, in our case profile definition file, add text by mistake that would make file unparsable, like this:

adas<?xml version="1.0" encoding="UTF-8"?>
<Profile xmlns="http://soap.sforce.com/2006/04/metadata">
    <application
....

After that, run duplicate detector

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant