stage1: better file path handling

* better message printed when cache hash fails
 * better handling of '/' as root source file
 * os_path_split parses '/' and '/a' correctly

closes #1693
closes #1746
This commit is contained in:
Andrew Kelley
2018-11-26 20:04:35 -05:00
parent d2ed4d3dd3
commit 67a39a4c99
5 changed files with 24 additions and 5 deletions

View File

@@ -33,6 +33,7 @@ const char *err_str(Error err) {
case ErrorSharingViolation: return "sharing violation";
case ErrorPipeBusy: return "pipe busy";
case ErrorPrimitiveTypeNotFound: return "primitive type not found";
case ErrorCacheUnavailable: return "cache unavailable";
}
return "(invalid error)";
}