diff options
| author | Andrew Kelley <superjoe30@gmail.com> | 2016-04-12 16:18:41 -0700 |
|---|---|---|
| committer | Andrew Kelley <superjoe30@gmail.com> | 2016-04-12 16:18:41 -0700 |
| commit | 69109bc270c3167a3534dd32fc4f4def855e0be9 (patch) | |
| tree | b9839d8b4f0a5475328e6c1988bdb9ccf5c862ad /src/error.cpp | |
| parent | be4df96e4b80a3307b3661fd5ca3114478499daf (diff) | |
| download | zig-69109bc270c3167a3534dd32fc4f4def855e0be9.tar.gz zig-69109bc270c3167a3534dd32fc4f4def855e0be9.zip | |
add error for dividing by zero in static function evaluation
Diffstat (limited to 'src/error.cpp')
| -rw-r--r-- | src/error.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/error.cpp b/src/error.cpp index 7690dd0776..caed95f693 100644 --- a/src/error.cpp +++ b/src/error.cpp @@ -12,6 +12,8 @@ const char *err_str(int err) { case ErrorFileNotFound: return "file not found"; case ErrorFileSystem: return "file system error"; case ErrorFileTooBig: return "file too big"; + case ErrorDivByZero: return "division by zero"; + case ErrorOverflow: return "overflow"; } return "(invalid error)"; } |
