mirror of
https://github.com/LuckPerms/LuckPerms.git
synced 2024-11-24 11:38:40 +01:00
Log the file name when I/O fails
This commit is contained in:
parent
98d6cf842a
commit
f89fb87c92
@ -91,6 +91,7 @@ public class JSONBacking extends FlatfileBacking {
|
||||
}
|
||||
}
|
||||
} catch (Exception e) {
|
||||
plugin.getLog().warn("Exception whilst writing to file: " + file.getAbsolutePath());
|
||||
e.printStackTrace();
|
||||
}
|
||||
return success;
|
||||
@ -109,6 +110,7 @@ public class JSONBacking extends FlatfileBacking {
|
||||
}
|
||||
}
|
||||
} catch (Exception e) {
|
||||
plugin.getLog().warn("Exception whilst reading from file: " + file.getAbsolutePath());
|
||||
e.printStackTrace();
|
||||
}
|
||||
return success;
|
||||
|
@ -95,6 +95,7 @@ public class YAMLBacking extends FlatfileBacking {
|
||||
}
|
||||
}
|
||||
} catch (Throwable t) {
|
||||
plugin.getLog().warn("Exception whilst writing to file: " + file.getAbsolutePath());
|
||||
t.printStackTrace();
|
||||
return false;
|
||||
}
|
||||
@ -111,6 +112,7 @@ public class YAMLBacking extends FlatfileBacking {
|
||||
}
|
||||
}
|
||||
} catch (Throwable t) {
|
||||
plugin.getLog().warn("Exception whilst reading from file: " + file.getAbsolutePath());
|
||||
t.printStackTrace();
|
||||
}
|
||||
return success;
|
||||
|
Loading…
Reference in New Issue
Block a user