More meaningful error message on log
See original GitHub issueDescribe the bug
Hello, Team!
I have an apparently flawed .bpmn file which I want to import in Camunda Modeler (attached, change extension to bpmn), but the error messages show no hint on what is missing/broken in the file: probe.txt
The message is
[C:\Users\machine\Desktop\probe.bpmn] Cannot read properties of undefined (reading 'x') [ warning ]
Steps to reproduce
- open Camunda Modeler
- open the attached file
- I get a few error messages, like:
[C:\Users\machine\Desktop\probe.bpmn] Cannot read properties of undefined (reading 'x') [ warning ]
Expected behavior
The error message should contain more info on what is missing, like what is undefined
, the properties of which can not be read.
Cf. BpmnImporter
(https://github.com/camunda/camunda-modeler/issues/3047#issuecomment-1195478916).
Environment
- OS: Windows 10
- Camunda Modeler Version: 5.1.0
- Execution Platform: Camunda Community
- Installed plug-ins: none
Additional context
No response
Issue Analytics
- State:
- Created a year ago
- Comments:8 (5 by maintainers)
Top Results From Across the Web
Using the SQL Error log to help log meaningful errors for your ...
I found this error less than useful so I set out to try and log something more meaningful , which I ended up...
Read more >How to Write Good Error Messages - UX Planet
Short and meaningful error messages are more understandable. Examples: The message is not meaningful for user. A message should not be as ...
Read more >Error Messages: Examples, Best Practices & Common Mistakes
Useful error messages can keep users on your site and increase conversions. See examples and learn the best practices.
Read more >Designing Error Messages and a Logging Strategy in Node.js
Learn how to structure helpful error messages and follow a good logging strategy.
Read more >Writing good error messages (for developers) - Manoj Awasthi ·
Good error messages provide details of immediate context. In all likelihood, only one error scenario will hit at a time. So each log ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
That’s good to know. Manually creating BPMN files is pretty error-prone. Your attached diagram is clearly missing the DI
bounds
, therefore the Modeler is not able to properly render them. There is no autolayouting in place.I know, I don’t intend to create bpmn files manually, I just created this file as a minimal example to illustrate what I mean.