fix missing catch

This commit is contained in:
skilion 2015-09-01 21:17:09 +02:00
parent 00d53f648e
commit e2ad29744a

View file

@ -1,3 +1,4 @@
import core.exception: RangeError;
import std.stdio, std.file, std.json;
import cache, config, onedrive, util;
@ -123,6 +124,8 @@ final class SyncEngine
crc32 = item["file"].object["hashes"].object["crc32Hash"].str;
} catch (JSONException e) {
writeln("The hash is not available");
} catch (RangeError e) {
writeln("The crc32 hash is not available");
}
}