Skip to content

[QOL]: Change error code from "RecordNotFound" to "InlineCompanyRecordNotFound" for missing inline Company records #114

@Uanela

Description

@Uanela

Current Experience

When creating a User record that requires an inline Company record that doesn't exist, the error returns:

{
  "code": "RecordNotFound",
  "statusCode": 404,
  "message": "No 'Company' record (needed to inline the relation)"
}

Improved Experience

The error code should be InlineCompanyRecordNotFound instead of the generic RecordNotFound. This makes it easier to handle this specific error case programmatically.

Impact on Workflow:
Encountered when working with User records that have Company relations. Would make error handling more specific and easier to implement.

Area of Improvement

Error Messages

Impact on Workflow

Weekly - would save some time

Package

arkos

Arkos.js Version (or Package version)

1.4.0-beta

Examples from Other Tools

No response

Implementation Effort (Your Guess)

Medium - Moderate effort (days)

Pre-submission Checklist

  • I have checked if this improvement has already been suggested
  • This is a QOL improvement, not a new feature
  • I'm willing to help test this improvement

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions