Comments (4)
Sorry for the late response. The project was initially only intended to be used as CLI tool so there was lack of error handling, but it is definitely not a good thing. Contributions to add error handling would be very welcomed.
from asar.
@zcbenz @MarshallOfSound is this an intentional behavior? If so can you clue me into the rationale?
Is there any way you can suggest that one could gracefully handle errors during programmatic use?
Right now the only method that occurs me to me is to wait XX
seconds for an operation to finish, and to assume that it failed if the time exceeds XX
seconds, but that's pretty brittle.
It would be wonderful is asar
threw an error when the file write failed in some capacity!
from asar.
In lieu of an error, is there any way to verify the integrity of the entire file?
from asar.
To clarify, I know the README says no errors are provided, but the reason I find this particular lack of error unexpected is that errors do seem to be provided upon failure to extract the archive in the same scenario (full disk.)
Actually, this is the only operation I've come across that actually adheres to the README - granted I'm not using half the functions.
from asar.
Related Issues (20)
- Run extracted content without packing it back again HOT 1
- ASAR file format HOT 1
- Create asar fails for nested empty directories: `Cannot read property 'files' of undefined` HOT 1
- bug: extractAll crashing because of non-existent file HOT 3
- There is an error that seems to be caused by soft links
- dynamic import not working inside asar HOT 5
- Typescript rewrite? HOT 1
- uncache/uncacheAll purpose?
- goto #_undefined_# 2>NUL HOT 6
- `@types/glob` should be a dev dependency, not an optional dependency. HOT 1
- What does 'Asar' stand for? HOT 2
- https://github.com/alibaba-open-source-website/Chat2DB/commit/691f4ce1e48b5aaa3a420c576fc7c560b1ff69c1
- Can not import a js file from asar HOT 1
- Incorrect integrity of transformed files? HOT 2
- BUG: asar command fails with "module not found" HOT 2
- Recursive rmdir returns error while trying to remove folder, that contains asar file. HOT 1
- just a theory
- Symlinked directories not included in asar
- Error in getNode while accessing symlink
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from asar.