Skip to content
This repository was archived by the owner on Mar 3, 2023. It is now read-only.

Better errors - #4906

Merged
benogle merged 35 commits into
masterfrom
bo-better-errors
Jan 15, 2015
Merged

benogle merged 35 commits into
masterfrom
bo-better-errors

Conversation

@benogle

@benogle benogle commented Jan 8, 2015

Copy link
Copy Markdown
Contributor

TODO

  • Open access errors
  • Errors on read after file change event
  • unable to watch path errors for config, keymap, user scripts on startup
  • Make sure the bad-config errors arent crazy

@kevinsawicki

Copy link
Copy Markdown
Contributor

Love this 👍

@benogle

benogle commented Jan 8, 2015

Copy link
Copy Markdown
Contributor Author

There are so many places we throw sketch app-killing errors.

Comment thread src/project.coffee Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

What do you think about just using a custom code instead? To be consistent with other IO errors from node.

This could be be like error.code = 'ETOOLARGETOOPEN' or something.

Comment thread src/workspace.coffee Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

💄 "#{error.message} Large file support..."

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

obv

Comment thread src/config.coffee Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This might be config.json so you may want to use path.basename(@getUserConfigPath())

@benogle

benogle commented Jan 14, 2015

Copy link
Copy Markdown
Contributor Author

Ok, I think this is ready to go. @kevinsawicki another quick pass would be rad

@kevinsawicki

Copy link
Copy Markdown
Contributor

Just a heads up, you might want to rebase, doesn't look like this will merge cleanly currently.

Comment thread src/keymap-extensions.coffee Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@ instead of this? I see it was using this before, but might be nice to change it now since it is being edited.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.