Skip to content
This repository has been archived by the owner on Apr 13, 2020. It is now read-only.

Add error codes to service commands #533

Merged
merged 3 commits into from
Apr 9, 2020
Merged

Add error codes to service commands #533

merged 3 commits into from
Apr 9, 2020

Conversation

edaena
Copy link
Contributor

@edaena edaena commented Apr 8, 2020

);
throw buildError(errorStatusCode.VALIDATION_ERR, {
errorKey: "service-create-revision-cmd-err-default-branch-missing",
values: [join(__dirname, "bedrock.yaml")],
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i believe join should be path.join

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@dennisseah it's imported above from the module:

line 2:
import { join } from "path";

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

got it thanks

buildError(
errorStatusCode.CMD_EXE_ERR,
"service-create-revision-cmd-failed",
err
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@dennisseah dennisseah merged commit c139938 into master Apr 9, 2020
@andrebriggs andrebriggs deleted the edaena-svc-err branch April 10, 2020 22:30
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants