firepear / petrel

It's like SQLite, but for networking
MIT License
20 stars 1 forks source link

Errors from Petrel should have a common prefix #41

Closed firepear closed 8 years ago

firepear commented 8 years ago

It should be easy to distinguish between a Petrel error response (in fact, it should be handled in pclient) and a message which is coming from the app. Need a prefix to distinguish this.

firepear commented 8 years ago

Looks like PERR

firepear commented 8 years ago

The format should be

PERRPERRPERR {error struct}

pclient will know to catch this and handle diagnostics

firepear commented 8 years ago

Just PERRPERR should do it.