test-fullautomation / python-jsonpreprocessor

A preprocessor for json files
Apache License 2.0
2 stars 2 forks source link

Line breaks and string conversions #290

Open HolQue opened 1 month ago

HolQue commented 1 month ago

Hi Son,

please avoid such manual line breaks: raise Exception(f"\n{str(error)} in line: '{line}'")

Because the output is:

Error: '
No closing quotation in line: '   "param" : ${'}''!

But expected is:

Error: 'No closing quotation in line: ' "param" : ${'}''!

What is the reason for this type cast: str(error) ?

My understanding is that already f"{...}" does the job.