-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Privilage violation error and handle errors properly rather than …
…returning blank strings
- Loading branch information
Kaleb Bozorgzadeh
committed
Oct 26, 2020
1 parent
79620f7
commit b18a28d
Showing
2 changed files
with
11 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
defmodule Scrub.CIP do | ||
def status_code(0x00), do: :success | ||
def status_code(0x06), do: :too_much_data | ||
def status_code(0x0F), do: :privilage_violation | ||
def status_code(status), do: status | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters