question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

More meaningful error message on log

See original GitHub issue

Describe 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

  1. open Camunda Modeler
  2. open the attached file
  3. 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:open
  • Created a year ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
pinussilvestruscommented, Jul 27, 2022

I created it in Notepad++, as a minimum working example for testing my project which uses Camunda.

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.

0reactions
Omcseszcommented, Aug 4, 2022

I created it in Notepad++, as a minimum working example for testing my project which uses Camunda.

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found