Skip to content

Better debugging #122

@edurenye

Description

@edurenye

Is your feature request related to a problem? Please describe.
I'm getting an error during a schema push, and I want more information regarding the error, but when I use the debug option all I get is this:

[09:31:42.351] DEBUG (1482): [migration-client] Cache cleared
[09:31:42.363] INFO (1482): ---- Push schema ----
[09:31:43.005] ERROR (1482):
    errors: [
      {
        "message": "Cannot read properties of undefined (reading 'fields')",
        "extensions": {
          "code": "INTERNAL_SERVER_ERROR",
          "stack": "TypeError: Cannot read properties of undefined (reading 'fields')\n    at FieldsService.createField (file:///app/directus/node_modules/@directus/api/dist/services/fields.js:262:79)\n    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n    at async file:///app/directus/node_modules/@directus/api/dist/utils/apply-diff.js:158:21"
        }
      }
    ]
    response: {}

Describe the solution you'd like
I would like it to tell me which file triggered that error so it is easier for me to debug it and find the problem.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions